SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot ArtphotoasiA's Avatar
    Join Date
    Dec 2009
    Location
    Italy
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    wordpress help needed (2)

    Hi there I have a problem in WP... with next/previous post link...

    (1) in the blog/index page the links look like next post>> and <<previous post

    (2) in the blog/cat page the links also look like next post>> and <<previous post

    (3) in the post pages itself like /blog/?p=351 the links look like titlepostlink>> and <<titlepostlink

    My goal is to have titlepostlink>> and <<titlepostlink
    ALSO in blog/index page AND blog/cat page everywhere.

    I have alredy tryed to modify PHP like this but nothing...

    Code:

    Code:
    <?php previous_post_link('&laquo; %link') ?>
    <?php next_post_link('%link &raquo;') ?>
    if I modify blog/index page or blog/cat page in this way the link does not show up.

    Any help?
    More by Corrado Prever... visit www.corradoprever.com
    Porfolio... visit www.500px.com

  2. #2
    SitePoint Member
    Join Date
    Jun 2009
    Location
    Los Angeles
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <?php previous_post_link('&laquo; &#37;link'); ?>
    <?php next_post_link('%link &raquo;'); ?>

    These are the correct code snippets. On the categories and index pages the list of excerpts are usually pulled within a loop so adding these snippets outside of the loop won't allow Wordpress to know which “post” is being referred as the previous or next. A link to your dev site and/or some snippets of the loops might help since these things can be theme specific.

  3. #3
    SitePoint Zealot ArtphotoasiA's Avatar
    Join Date
    Dec 2009
    Location
    Italy
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by WHHG View Post
    <?php previous_post_link('&laquo; &#37;link'); ?>
    <?php next_post_link('%link &raquo;'); ?>

    These are the correct code snippets. On the categories and index pages the list of excerpts are usually pulled within a loop so adding these snippets outside of the loop won't allow Wordpress to know which “post” is being referred as the previous or next. A link to your dev site and/or some snippets of the loops might help since these things can be theme specific.
    here is the link... chimicare.org/blog is in italian regretfully I hope it helps
    More by Corrado Prever... visit www.corradoprever.com
    Porfolio... visit www.500px.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •