Steven Jones
Forum Replies Created
-
Forum: Your WordPress
In reply to: My first attempt at wordpressForum: Plugins
In reply to: Adding a variable into a WP QueryThank you very much.
Forum: Plugins
In reply to: Adding a variable into a WP QueryAny ideas?
Forum: Themes and Templates
In reply to: If page is a parentGuys just putting this out there again if anyone can answer it, I’m still not any further with the problem.
Forum: Themes and Templates
In reply to: If page is a parentDoes anyone else have a view on this? I’m stumped!
Forum: Themes and Templates
In reply to: If page is a parentThis still includes the menu template even when the page has no children. Here is the full code including the contents of menu.php (instead of the include) incase what I have done in there is wrong.
<?php $children = get_children( "post_type=page" ); if( $children ) { <div class="Menu"> <ul> <?php $pages = wp_list_pages('sort_column=menu_order&title_li=&echo=0&child_of='.$post->ID.''); $pages = preg_replace('%<a>]+)>%U','</a><a><span>', $pages); $pages = str_replace('</a>','</span>', $pages); echo $pages; ?> </ul> <? unset($pages); ?> </div> } ?>
Thanks again,
SteveForum: Themes and Templates
In reply to: If page is a parent<?php $children = get_children("post_parent=" . $post->ID ); if( $children ) { include (TEMPLATEPATH . "/menu.php"); } ?>
I’ve tried that above and it doesn’t work, it doesn’t show the menu template for the pages that have child pages. Just to recap – this is a parent page and I only want to include the menu template if the parent has child pages.
Thank you,
SteveForum: Plugins
In reply to: Help with displaying content on a page.Does anyone have any ideas?
Forum: Plugins
In reply to: Help with displaying content on a page.I was thinking whether it was something to do with the
<?php endwhile; ?> <?php endif; ?>
but I’ve tried taking them away and they produce errors.
Forum: Plugins
In reply to: What argument do I give query_posts() to return same posts as index page?I think there actually has to be a query in the (), if you’re not making a query then you’re bringing back all the posts like the front page anyway.
So just try something like
<?php if (have_posts()) : while (have_posts()) : the_post();?>
and that should bring everything back.
Cheers,
SteveForum: Plugins
In reply to: Loop won’t close so I can open another.Does anyone have any suggestions?
Forum: Installing WordPress
In reply to: Lose “settings” menu from admin“You do not have sufficient permissions to access this page.” That’s all it says on the page.
Cheers,
SteveForum: Fixing WordPress
In reply to: Buttons missing in visual editor after 2.5 upgradeI was gonna say make sure the visual editor in your profile is ticked and make sure all the files have uploaded properly, not loads of help but double check those things.
Forum: Everything else WordPress
In reply to: Why users cannot log in?Forum: Themes and Templates
In reply to: Float problem.Such a simple answer! Very much appreciated. I actually had float:left orignally, turns out don’t need it at all.
Thanks again,
Steve