Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress problem with include(TEMPLATEPATH . ‘/inc/nav.php’)

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30794

    Hi
    I run a query_post on a page Template and I want to loop the category No * with 12 posts per page…
    Everything is working fine except the navigation for Older and Newer Entries: it always show the last 12 posts…

    Here is the code for my page Template:

    
    /*
    Template Name: blog photo
    */

    ?>













    ">










    'Pages: ', 'next_or_number' => 'number')); ?>



    ', '

    '); ?>











    Where is the problem???
    Thank you very much for your help!
    Hubert

    #72386
    TheDoc
    Member

    I’ve never used TEMPLATEPATH before, so I can’t comment on that. Is that a strictly PHP thing? Never seen it with WordPress before.

    If you’re looking for a way to get to you theme files (wp-content/themes/your-theme/) then use:

    bloginfo(‘template_url’);

    #72276
    Rob MacKay
    Participant

    TEMPLATEPATH in that sense is a constant that has been defined.

    You use them like this:

    define('TEMPLATEPATH', 'Whatever you want'); 

    I have no idea without looking properly into it – my first idea is your query needs something else in it to tell it that you are moving forwards… I know WP does this nicely for you most of the time but something is tickling the back of my mind… lol

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.