peiqinglong
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Displaying child pages of parent pages problemmoody, that didn’t work.
Forum: Themes and Templates
In reply to: categories as menu?You would have to edit the code. The way I’m assuming the themes that use categories as menus are basically creating a div such as <div id=”menu”> and then calling the categories through wp_list_cats (or whatever the correct tag is) inside the menu div and style it through the CSS. It is possible to do this for every theme, but I don’t think its possible to make it automatic. Once you get it working on 1 theme, you could copy paste the code and then style it however you like.
Forum: Fixing WordPress
In reply to: Displaying child pages of parent pages problemHrmmm…that worked. Although it still does display the Forums and Profile which aren’t pages as far as I can tell from the admin panel.
http://www.bui4ever.com/mac, all the way in the sidebar to the bottom.
Forum: Fixing WordPress
In reply to: Displaying child pages of parent pages problemI just tried doing this:
print wp_list_pages(“child_of=’63’&echo=0”); and that still did the same thing.
If I just do a:
print wp_list_pages(“mac”); all my pages display.
Forum: Fixing WordPress
In reply to: Displaying child pages of parent pages problemHrmmm, if I put wp_list_pages(“title_li=&child_of=63″.$post->ID.”&sort_column=menu_order&show_date=modified&date_format=$date_format”);
It just displays my forum and profile which aren’t even in the pages list.
Forum: Fixing WordPress
In reply to: Displaying child pages of parent pages problemFor example, I have a page I titled Mac. I want to use that parent page to house a bunch of child pages that will be tips and tricks. I would like to have any current and new child pages created under the Mac parent page to appear in the sidebar. I do want to be able to do this with a few other pages, but not ALL the parent pages.
Forum: Fixing WordPress
In reply to: Post SlugCool thanks!
Forum: Fixing WordPress
In reply to: Combining Conditional Tag/PHP problemNot a problem, glad to be of assistance =)
Forum: Fixing WordPress
In reply to: Combining Conditional Tag/PHP problemOh I’m sorry, I made a mistake. Try this:
<?php if (is_single())
{
echo “<div id=’latestnews’><h2>Latest News:</h2>< p >”;
print get_archives(‘postbypost’,”4″,1,””,””,””);
echo “< /p ></div>”;
} ?>Can’t have double double quotes.
Forum: Fixing WordPress
In reply to: Combining Conditional Tag/PHP problemWhat I would do is style it with CSS. So something like this:
In you CSS file:
#latestnews {margin: 2px 0; padding: 0; }
#latestnews h2 {font: 10px bold italic; text-align: center; }Then change the code to:
<?php if (is_single())
{
echo “<div id=”latestnews”><h2>Latest News:</h2>< p >”;
print get_archives(‘postbypost’,”4″,1,””,””,””);
echo “< /p ></div>”;
} ?>That should do the trick…you may have to alter the CSS code depending on what you want.
Forum: Fixing WordPress
In reply to: Combining Conditional Tag/PHP problemTry something like this:
<?php if (is_single())
{
echo "<center><s t r o n g><e m>Latest News:";
print get_archives('postbypost',"4",1,"","","");
echo "</e m></s t r o n g></center>";
} ?>Removing the spaces in the strong and em tags of course.
Forum: Fixing WordPress
In reply to: Anyway to allow a user to edit only 1 page?Doh! Thank you =)
Forum: Fixing WordPress
In reply to: Anyway to allow a user to edit only 1 page?Yup. =)
Forum: Fixing WordPress
In reply to: Installing a rotating script in header.php helpBasically that is what I use on about all my sites, the random.php that rotates a banner. I actually stuck the code into my CSS file as such:
#header {
margin: 5px auto 5px;
padding: 0;
background: #fff
url(“http://www.bui4ever.com/wp-content/themes/bui4ever_v15/img/headers/rotate.php”) no-repeat bottom;
width: 760px;
height: 143px;
border: 2px solid #000;
}and that produced my random rotating banner here: http://www.bui4ever.com
Forum: Fixing WordPress
In reply to: Commenting on PagesOh cool! I added <?php comments_template(); // Get wp-comments.php template ?> to my page.php template and it works perfectly. Thanks!