ambar.guy
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [List Sub Pages] Showing top pages when no child page existuse this
//$pages=wp_list_pages($args); $parents = get_post_ancestors( $post->ID ); $id = ($parents) ? $parents[count($parents)-1]: $post->ID; $args = array( 'order' => $sort_order, 'post_parent' => $id, 'post_status' => 'publish', 'post_type' => 'page', ); $attachments = get_children( $args ); foreach($attachments as $attachment) { if(($attachment->post_title != $thispagetitle)): ?> <li><a href="<?php echo $attachment->guid;?>"><?php echo $attachment->post_title;?></a></li> <?php endif; } print_r($pages);under else when checking
if($attachments)
in the file plugin_list_subpages.phpForum: Themes and Templates
In reply to: [Customizr] meta tagsThanks! these were all the answers I needed! I will use the SEO plugin then if theres more i need to add I will do that in the file.
Thanks again
Forum: Themes and Templates
In reply to: [Customizr] meta tagsi cant find the <head> open and close tags
y not edit the theme itself? it has to be there inside somewhere…Forum: Themes and Templates
In reply to: [Customizr] meta tagsto the theme customizr
i got this in editor in header.php
cant find the function in functions.php<?php
//the ‘__before_body’ hook is used by TC_header_main::$instance->tc_head_display()
do_action( ‘__before_body’ );
?>
Viewing 4 replies - 1 through 4 (of 4 total)