• Hi guys…

    I’m having trouble using the function ‘previous_post_link () ‘. This function is printing the code the character ‘?’ and this is causing problems in the correct display of the content of page. Anyone had this problem? Some usgest?o to fix this? The function ‘next_post_link ()’ is functioning normally.

    Thank you!

    • This topic was modified 8 years, 4 months ago by bjfagundes.
    • This topic was modified 8 years, 4 months ago by bjfagundes.
    • This topic was modified 8 years, 4 months ago by bjfagundes.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi bjfagundes,

    Make sure if you have made a custom wp_query call before the next_post_link() / previous_post_link() calling and has not reset the query to the default.

    In that case please use wp_reset_query after the use of custom wp_query.

    Hope it will help you.

    what theme are you using?

    does the problem continue if you temporarily switch to the default theme Twenty Sixteen and deactivate all plugins?

    can you post a link to your site, to a post which showa the problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Function previous_post_link problem !’ is closed to new replies.