• Resolved mpbaweb

    (@mpbaweb)


    Hi
    The 404 page supplied with the Theme is not bad, but one section displays EVERY page on the site including registration/login/member/restricted pages and forms. I need to control this to specifically exclude certain pages. How can this be done?

    I can see a kind of workaround by editing the php and completely removing the line:
    <?php the_widget( ‘WP_Widget_Pages’, ”, $args ); ?>
    But that gets rid of ALL the links

Viewing 1 replies (of 1 total)
  • Theme Author ThemeZee

    (@themezee)

    Hi there,

    Thanks for using Smartline.

    You can try to exclude page IDs with this code:
    <?php the_widget( ‘WP_Widget_Pages’, ‘exclude=5,9,23’, $args ); ?>

    Not sure if this works, but that is the only solution I can think of which might work with the Pages widget.

    Using the Pages widget is a simple way to retrieve the pages. For complete control over the pages, you have to build a complete custom database query to retrieve all pages you want.

    Best,
    Thomas

Viewing 1 replies (of 1 total)
  • The topic ‘404 Page’ is closed to new replies.