mariostella
Forum Replies Created
-
Forum: Reviews
In reply to: [Assign Categories] BAD! Deletes previously assigned categoriesMy only error was to install the plugin and use it without testing it on one post first. It got an entire set of posts messed up.
Moreover, the plugin is totally redundant of the core bulk edit function, which I discovered after the fact.
I believe I am entitled to leaving my opinion here without consulting the author first as this gives anyone a heads up on possible issues, benefitting the community in a timely fashion without wasting time waiting for a reply to an issue that might not even get addressed with the due amount of hurry. If this gets me reprehended by a moderator, I believe the wp community is changing for the worst.
Have a good one.Forum: Reviews
In reply to: [Suits] Developer friendly, designer friendlyYou need to edit the category file, switch the the_content bit of code with the_excerpt bit where it says something like, while have posts. Blah blah, the_post and so on. of course you need to have excerpts in your posts. Otherwise if you want text snippets of your posts you need to add parameters to output the_content truncating it after a custom number of letter ending with an ellypses or similar and a link to the post with read more or some. The codex has lots of references on this, and the forums are filled with such cases, search around.
Thanks!
Hi, what about posting the answer here? Thanks chitaranjan.thoudam
Forum: Fixing WordPress
In reply to: Detect grandchildrenAH! Thanks! I added this
function get_grandpapa($page_id){ $current_page = get_page( $page_id ); if ($current_page->post_parent > 0){ $parent_page = get_page($current_page->post_parent); if ($parent_page->post_parent > 0){ return $parent_page->post_parent; }else{return false;} }return false;};
in the functions file, the called the boolean in the template file. Thanks it works!
Forum: Fixing WordPress
In reply to: Detect grandchildrenHi, Thanks but I had already tried that, and it did not work. However I am not sure I understood the following comment from the original poster and therefore modified the code appropriately.
This is the comment quote:
“Why thank you! I had to Booleanate the function (renamed to is_grandchild) and changed line 7 to “return true”. – “What I did, I renamed the function, then applied the change on line 7 but it did not work the same. I am not sure I understand what he means for Booleanate.
Forum: Fixing WordPress
In reply to: Detect grandchildrenPS: I tried this https://www.web-templates.nu/2008/09/07/get-depth-like-is_child-is_grandchild/ and similar to no avail….
Forum: Fixing WordPress
In reply to: Detect grandchildrenThanks but that does not answer my question. I need to know if a page is a grandchild not a child. The codex snippets only talk consider one level of separation, I need two.
Why doesn’t the core include a nice “is_grandchild” function?
Forum: Fixing WordPress
In reply to: Conditional Statement: is page a grandchild?Any ideas?
Forum: Plugins
In reply to: PHP Syntax questionIt works indeed, I had a redirection issue with my test page that sent me to a page without a saved map on it…sorry for the useless mess.
Forum: Fixing WordPress
In reply to: Conditional Statement: is page a grandchild?I get the id of the page and the echo “this is grandchild of top page” on both the grandchild and the parent of the grandchild (i.e. the child), of course the ID changes.
It seems as if they are both considered grandchildren…how is that possible? I am sure I have the structure correct, one is a subpage of the other, even the URL shows that…
My functions.php file is empty, and I do not think I have plugins that should cause something like this to happen.
Would you have any further idea? Thanks for your help so far!
Forum: Fixing WordPress
In reply to: Conditional Statement: is page a grandchild?Thanks a lot, the problem with the ancestors function is that I get “this is grandchild of top/some page” echoed in both the grandchild and the child of the grandparent page…
My structure is very straightforward so I do not understand why the first generation is treated as the second one:
.Page1 (grandparent)
..Subpage (Child)
…Sub-Subpage (Grandchild)I get “this is grandchild of top/some page” in both the child and grandchild. I tried both options you suggested.
Thanks a lot for any further help in advance..
Forum: Hacks
In reply to: Pass custom field value from post to iframeI just had to implement it on another theme, and since that function on the new theme (and WP 3.1) did not work I had to change it to this
<?php $pid=$_GET["pid"]; query_posts('p=' . $pid); ?><?php if ( get_post_meta($pid, 'Author Email', true) ) : ?><?php echo get_post_meta($pid, 'Author Email', true) ?><?php endif; ?>
Use this function above to get whatever custom value for a specific key you are using (in my case the key is Author Email).
The call from the single.php file does not change.
I think you are messing things up setting everything in the same file.What goes in the single.php is just this
<iframe src="wordpress/wp-content/themes/twentyone/pop.php?postid=<?php echo the_ID(); ?>" width="280" height="280"></iframe>
Whereas the piece of code above goes in your iframe code, where you want the custom value to be displayed. Hope it is clearer now.
Forum: Plugins
In reply to: PHP Syntax questionActually I do not get errors, the code just does not get injected with coords, the map displays fine but as if there were no coordinates in the geo mashup code.
If I change anything in the code above I get errors and the page does not load.Maybe I am calling the coordinates wrongly? If you were to do something like this how would you code it? (hint hint! :)))))) )
Thanks in advance
Forum: Plugins
In reply to: [Geo Mashup] [Plugin: Geo Mashup] Display Posts Near Point Not WorkingHi, I tried echoing the coordinates prior to trying it out and they work, but I guess my php syntax is wrong in the code above. As for the second answer, great, will be waiting for 1.4 even more anxiously!
Thanks for your replies