Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • use 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.php

    Thread Starter ambar.guy

    (@ambarguy)

    Thanks! 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

    Thread Starter ambar.guy

    (@ambarguy)

    i cant find the <head> open and close tags
    y not edit the theme itself? it has to be there inside somewhere…

    Thread Starter ambar.guy

    (@ambarguy)

    to 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)