Support » Plugins » Navigation Problem: getting info outside the LOOP another request

  • Resolved


    Hi… I have 5 problems:

    1) I have to do a menu on the header, so I’m outside the loop, and I have to get the IF of a category/page having it’s name.
    The code I’m using is this:
    <?php wp_list_pages('child_of=50&sort_column=menu_order, post_title&title_li='); ?>
    I’d like to use something like get_page_id(‘MY_PAGE_NAME’); instead of using it’s id directly.

    2) Does exist a plugin to reorder the pages number better than the classic reorder_page plugin you found with google? It doesn’t support the “recursive” reordering of a page if you have another with the same order, and also it works bad if you use sub-pages that share the same order.

    3) I absolutely need to make a post CATEGORY my frontal page, in the options->reading section of wordpress only pages can be used as “initial page”.
    Someone knows a way to make an entire category my frontal page? (my objective is to show the NEWS category as a person enter the blog and “hide” the blog part unless he enters it).

    4) Does exist a way to make a wordpress page a link to another? I’d like to “hide” someway my parent pages, or at least make them link to the first “child” page inside them.

    5) In the permalink section, I succesfully managed to have a fancy permalink structure for pages.
    However, the “optional” part don’t works.
    If I use the word “blog” as “Category base” the navigation don’t works, like if permalinks don’t works.
    But pages work perfectly, so that is not a .htaccess problem…
    What can it be?

Viewing 7 replies - 1 through 7 (of 7 total)
  • MichaelH


    I’ll attempt to answer several of your questions.
    1. Can’t do that with wp_list_pages. You would need to use something like Template_Tags/query_posts to do that.
    3. Create a template for a Page and use a Loop in that template that shows only posts in a certain category. Then make that your static front page.
    4. Can use something like <a href="">Next »</a>

    Thank you for your answers.

    1) I will try.

    3) nice idea.

    4) You are saying that if I do that the page will link automagically to the next one?? Or are you saying to change it’s link manually on the menu?



    4) I’m saying that that link would be place in one page to go to the page with a page slug called ‘my-page-i-want-next’.



    4. There is no prev/next navigatioon for Pages.



    The link can be used as a method to simulate ‘Next’ but my example should be more clear:

    href="">My Page I want to link to »</a>

    Ok… 3, 4 and 5 are out 😉

    For the point 1 I suppose I’ll have to do a query myself, but it don’t worth it for speed reasons.
    So i’ll just hardcode the page names (in my case they are parent-page) in the top of index.php.
    So editing that variables will change the names in all the places they are used.

    What about a better order_pages plugin?

    Regarding #1: I have had success using this method:

    <?php //BEGIN WordPress CODE
    	define('WP_USE_THEMES', false);
    	wp_list_pages('title_li=&child_of=14' );
    	//END WordPress CODE

    Once you have the define() and require() statements in there once, you can use some WP tags throughout the page outside of your blog structure.

    I hope that is helpful.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Navigation Problem: getting info outside the LOOP another request’ is closed to new replies.