kmaier
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: constant strugglei tried that too and blank again. bummer
Forum: Fixing WordPress
In reply to: constant strugglelike so? i tried a few different ways but it still came up blank.
<?php if($post->post_parent) $children = wp_list_pages("title_li=&depth=0&child_of=".$post->post_parent."&echo=0"); else $children = wp_list_pages("title_li=&depth=0&child_of=".$post->ID."&echo=0"); if ($children) { ?> <ul id="sec_nav"> <?php echo theme_page_tree($post); ?> </ul> <?php } ?>
Forum: Fixing WordPress
In reply to: constant struggleput the functions in the functions.php and added
<?php echo theme_page_tree($post);?>
to my sidebar.php but it comes through as blank now.Forum: Fixing WordPress
In reply to: constant strugglethanks Esmi,
do i put he function items in the functions.php? if i put that code into my template i get an error.
amazing! seriously thank you
Forum: Fixing WordPress
In reply to: pluggable.php errosthat worked thanks! is there a reason it does that?
Forum: Plugins
In reply to: [Members Only] Deny access to content by defaultdid you ever find anything with this? i am having the same issue with denying content from the outside world.
Forum: Fixing WordPress
In reply to: Remove “Pages” and “Posts” panels from admin dashboardawesome thanks
Forum: Fixing WordPress
In reply to: jump to different URLperfect thanks!!
Forum: Fixing WordPress
In reply to: templates defaulting from migrationis the ID “page_template”? i’m not seeing it in the db anywhere…aye.
Forum: Fixing WordPress
In reply to: parent and child page woesfound a solution. not sure if its the best but it works for me!
For anyone out there looking this might help you as well. I just added an if statement looking for the page id and or the parent id.
<div id="mainNav"> <div id="demo"><a href="/demo-reel/"><span>DEMO REEL</span></a></div> <div id="commercial"><a href="/commercial/"><span>COMMERCIAL</span></a></div> <ul><?php if ( is_page('50') || $post->post_parent == '50' ){ $page = $post->ID; if ($post->post_parent) { $page = $post->post_parent; } $children=wp_list_pages( 'echo=0&depth=&child_of=' . $page . '&title_li=' ); if ($children) { $output = wp_list_pages ('echo=0&depth=&child_of=' . $page . '&title_li='); } echo $output; } else { } ?> </ul> <div id="docubites"><a href="/docubites/"><span>DOCUBITES</span></a></div> <ul><?php if ( is_page('55') || $post->post_parent == '55' ){ $page = $post->ID; if ($post->post_parent) { $page = $post->post_parent; } $children=wp_list_pages( 'echo=0&depth=&child_of=' . $page . '&title_li=' ); if ($children) { $output = wp_list_pages ('echo=0&depth=&child_of=' . $page . '&title_li='); } echo $output; } else { } ?> </ul> <div id="candy"><a href="/candy/"><span>CANDY</span></a></div> <ul><?php if ( is_page('59') || $post->post_parent == '59' ){ $page = $post->ID; if ($post->post_parent) { $page = $post->post_parent; } $children=wp_list_pages( 'echo=0&depth=&child_of=' . $page . '&title_li=' ); if ($children) { $output = wp_list_pages ('echo=0&depth=&child_of=' . $page . '&title_li='); } echo $output; } else { } ?> </ul> <div id="about"><a href="/about-us/"><span>ABOUT US</span></a></div> <div id="contact"><a href="/contact/"><span>CONTACT</span></a></div> </div>
Forum: Fixing WordPress
In reply to: parent and child page woesPLEASE HELP!!??
Forum: Fixing WordPress
In reply to: post id & subheadingstill cant get it to fire…
here is the page with the names, and here is the individuals page with their title
I’m using this line of code to collect the subheading for the individuals page:
<?php if (function_exists('the_subheading')) { the_subheading('<h3>', '</h3>'); } ?>
can this be done?
Forum: Fixing WordPress
In reply to: <body class=””>ran into something else…i have subpages for one of my sections but with this script it only takes the page and i have the section styled to that parent. is there a way to get the parent info in there too?
here is what i am running in the functions.php file
<?php add_filter('body_class', 'paragon_body_class'); function paragon_body_class($classes) { if (is_page()) { $classes[] = sanitize_title_with_dashes(get_the_title()); } return $classes; } ?>
thanks for any help
Forum: Fixing WordPress
In reply to: Custom fields – imagesworks perfectly. thanks!