Nagore
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Can I display a comment_excerpt and a link to full comment text?Hi,
I still haven’t found a solution…Am I right thinking that comment_excerpt() should provide a link by itself? It doesn’t work like that for me? What am I doing wrong?
Is it wrong to replace it for comment_text() in the comments template?
I saw some code where someone put <?php comment_excerpt(); ?><?php comment_text(); ?> one after the other. It didn’t make much sense to me but I tried and it just displays the whole text of the comment after the excerpt of the comment. Not good.Can anybody help me? I’m afraid I don’t now enough about programing to figure out what’s happening here.
any advice would be very appreciated.
(please)
n.Forum: Fixing WordPress
In reply to: Can I display a comment_excerpt and a link to full comment text?Hi,
Thanks for the response.That’s where I was looking and I’m using that but it’s not giving me a link. I guess I must be putting it in the wrong place.
I replaced the comment_text() function in the comment.php template.
It shows the excerpt but no link, that way.If i put it in the page.php template instead of comments_template()
it doesn’t show anything.So I’m confused.
Sorry, I must be missing something very obvious.thanks
Forum: Plugins
In reply to: Subpages and their kiddosHi,
I have a similar issue, but not sure if I’m looking for the same result.
What I am trying to do with the menu is to make it so it displays the full depth of the current page, but not the others.So if this is my hierarchy:
Parent 1
Parent 2 -> Child 2.1
Parent 3 -> Child 3.1
-> Child 3.2
-> Child 3.3 -> Grandchild 1
-> Grandchild 2When I am on Parent 1 I would only like to see the Parents level of menu.
If I am on Parent 2, I would like to see His Child 1 but not Parent 3’s childrenAnd I would only like to see the grandchildren of Child 3 when I am actually on that page, but not on Child 2 or Child 1.
I hope that makes some sense.
I have used this code that works great at the first two levels, but it doesn’t work for the Granchildren level. And after trying to modify it I haven’t figured out how to get it to do what I want.
<!-- FIRST ONLY DISPLAY THE 1st LEVEL --> <?php wp_list_pages('title_li=&depth=1'); ?> <!-- THEN DISPLAY THE CHILDREN IF THERE ARE ANY --> <?php if($post->post_parent) $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); else $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0"); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?>
Is there any way of extending this to the grandchildren?
any tips or suggestions would be very appreciated.Thanks,
nagore