rustyc
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Themes not showing upI don’t know if this is going to be the same for everyone but…
I’m running Ubuntu Desktop (8.10). I had developed the basics for a new theme on my main computer (also Ubuntu Desktop 8.10) and had transferred the theme files to my working laptop via jump drive. I maintain my web development in www/*projectfolder*. I had to change “Other” permissions to “Access Files” on the theme folder I had transferred into wp-content/themes. You have to set the permissions to “access” (at the very least) otherwise the web server can’t see the folder.
I don’t know what kind of scenario might or might not exist which would be similar for a windows system or if someone has linux but a different permission scheme, but that’s what had to be done in my case.
I was using just file transfers on the OS, not WP’s upload/import functions.
p.s. Might also need to apply (at least) a “read-only” to (at least) the “style.css” otherwise wordpress reads the theme as broken.
Forum: Fixing WordPress
In reply to: Parent/Children NavigationI’m still working on mine, but I think I’ve got something along what you need.
Mine is simply creating a menu structure, but I don’t know if wordpress has a way to test for current page (I thought I saw something somewhere along those lines), otherwise use of CSS and Javascript should allow you to hide or display.This code does display children only under their appropriate parents. I haven’t yet tested grandchildren, but that should/would be just a matter of duplicating the $children = get_pages and the subsequent conditional statement (placing the duplicated code inside the current children conditional statement / foreach loop).
<ul> <?php $include_page_ids = array('3','5','7','9','19','11','13'); //also the order of appearance for ($i = 0;$i < count($include_page_ids);$i++) { $args = array('title_li'=>'','include' => $include_page_ids[$i]); wp_list_pages( $args ); echo "<span class='zp-delimit'>|</span>"; $children = get_pages('child_of='.$include_page_ids[$i]); if (count($children) > 0) { $sub = "<ul class='childul'>"; foreach ($children as $child){ $sub .= "<li><a href='".get_page_link($child->ID)."'>"; $sub .= $child->post_title; $sub .= "</a></li>"; } $sub .="</ul>"; echo $sub; } } ?> </ul>