• Hello,

    I’m trying to hide my Thank You page and am running into an issue.

    I understand that the html in the post-template.php needs to be alter under wp_list_pages.

    So I created my page- took note of the ID

    Altered the following code:

    function wp_list_pages($args = '') {
    	$defaults = array(
    		'depth' => 0, 'show_date' => '',
    		'date_format' => get_option('date_format'),
    		'child_of' => 0, 'exclude' => '',
    		'title_li' => __('Pages'), 'echo' => 1,
    		'authors' => '', 'sort_column' => 'menu_order, post_title',
    		'link_before' => '', 'link_after' => '', 'walker' => '',
    
    	);

    to

    function wp_list_pages($args = '') {
    	$defaults = array(
    		'depth' => 0, 'show_date' => '',
    		'date_format' => get_option('date_format'),
    		'child_of' => 0, 'exclude' => '98',
    		'title_li' => __('Pages'), 'echo' => 1,
    		'authors' => '', 'sort_column' => 'menu_order, post_title',
    		'link_before' => '', 'link_after' => '', 'walker' => '',
    
    	);

    yet page is still showing??? It worked out fine with my test site, so not sure why I can’t work it out with this one.

    Any ideas was I may have missed?

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter mwelch

    (@mwelch)

    ok well I installed the Links Page Manager which did the job. However, would mind know how to code it as well just in case I ever have issue with the plugin ??

Viewing 1 replies (of 1 total)
  • The topic ‘Hidden page dilema’ is closed to new replies.