Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • I have tried to use this. However, it doesn’t seem to want to work with the information I gave it.

    Where can I find Blog ID?
    What should the “Access Point” be?

    I might just have those things wrong.

    j

    Forum: Plugins
    In reply to: Page and Subpage only
    Thread Starter yetsirahj

    (@yetsirahj)

    Thank you that worked GREAT two questions.
    #1
    Seeing as I am fairly new to PHP I have a question.

    <ul>
    <?php
    global $wp_query;
    if( empty($wp_query->post->post_parent) ) {
    if( is_page() ) {
    $parent = $wp_query->post->ID;
    $parent_title = $wp_query->post->post_title;
    }
    } else {
    $parent = $wp_query->post->post_parent;
    $parent_title = $wpdb->get_var("SELECT post_title FROM $wpdb->posts WHERE ID = $parent");
    }
    ?>
    <h2><?php echo apply_filters('the_title', $parent_title); ?></h2>
    <?php if( is_page() ) : ?>
    <?php wp_list_pages("title_li=&child_of=$parent"); ?>
    <? else : ?>
    <?php wp_list_pages('depth=-1'); ?>
    <?php endif; ?>
    </ul>

    The currewnt theme I am using adds a bar wherever a header (in the side bar) might be. On the main page I have made it so that the header doesn’t show up. but in the subpage I want it to. how can I get rid of the bar on the main page?

    #2. Let’s say that one of my subpages is “About” if I am in About>page 2 then I can’t get back to about. How can I make that a link?

    Forum: Plugins
    In reply to: Page and Subpage only
    Thread Starter yetsirahj

    (@yetsirahj)

    Thank you I will look into your threads and see if I can get this to function!

    Is there a way to only show the page that you are in?

    so if I am in https://www.blog.com/page1

    I won’t see page 2?

    This needs to be dynamic. i don’t want to have to hard code it. Because pages will be added and others deleted “randomly”.

    The fold plug-in is good but if you want to only show the subpages when you are in the parent how do you do that?

    let’s say you’re in https://www.blog.com/
    you will see:
    page 1
    page 2

    but if you are in https://www.blog.com/page 1
    you will only see:
    page 1a
    page 1b

    You will not see page 2.

    Can this be done? Is there an easy solution?

    Forum: Plugins
    In reply to: Foldable page list (WP 1.5)

    Has anyone found a way to view only a page and its subpages?
    As in if I were to goto https://www.blog.com/blogpage

    I would only see the blogpage page and whatever subpages it contains?

Viewing 6 replies - 1 through 6 (of 6 total)