• Hi, I read from other post that eliminating pages can be done by putting

    <?php wp_list_pages(‘title_li=my pages&exclude=##’); ?>

    the problem is where to put this code?
    I’m using MX4 skin and I really cant find some code like that to be replaced on header.php

    thanks ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • wp_list_pages is the code to list your pages. People usually put it in the sidebar. So that will put a list of all of your pages, except whichever ones you tell it to exclude. Is your page already showing the pages and you want to exclude some of them? If so, then you would need to change your existing code, not add another one.

    Thread Starter banana0408

    (@banana0408)

    The pages are shown on header, and the code is something like
    <?php
    $pages = BX_get_pages();
    if ($pages) {
    foreach ($pages as $page) {
    $page_id = $page->ID;
    $page_title = $page->post_title;
    $page_name = $page->post_name;
    if ($page_name == “archives”) {

    Are you using a plug in for that? BX_get_pages is not a standard tag.

    Thread Starter banana0408

    (@banana0408)

    I only have 2 plug ins installed: redirectify and ShowOnTopPage

    I’m using MX4 skin

    Thread Starter banana0408

    (@banana0408)

    Noone can help? ??

    MX4 – as stated on the dev’s blog – uses the Blix functions (BX) for navigation:
    https://www.mx4.info/devblog/
    Now the question is: where do you want to eliminate Pages from bein g listed?

    Thread Starter banana0408

    (@banana0408)

    I want the Pages to stay at the Header, except 1 page (it’s a page about me but i dont want it to appear on header).
    I dont know how to exclude this page, say the page ID is ‘9’, what I have to do?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Hide page (cant use <?php wp_list_pages(‘title_li=my pages&exclude=##’); ?>)’ is closed to new replies.