WordPress.org

Ready to get started?Download WordPress

Forums

upPrev
[resolved] Using Upprev on a front page with latest posts? (6 posts)

  1. SARed
    Member
    Posted 1 year ago #

    I have installed version 3.3.15 of the plugin and Everything works perfectly on the posts in my blog, Thanks.

    I am just wondering is it possible to use upprev on a front page that displays the latest post or on other pages in a blog?

    Do i need to insert some code in my theme to do this?

    Thanks

    my website is

    http://predestination.co.za/

    http://wordpress.org/extend/plugins/upprev/

  2. Marcin Pietrzak
    Member
    Plugin Author

    Posted 1 year ago #

    Change line 67 to this:

    Index: upprev.php
    ===================================================================
    --- upprev.php  (revision 695114)
    +++ upprev.php  (working copy)
    @@ -67,7 +67,7 @@
    
     function iworks_upprev_check()
     {
    -    if ( !is_single() && !is_page() ) {
    +    if ( !is_single() && !is_page() && !is_front_page() ) {
             return true;
         }
         /**
  3. SARed
    Member
    Posted 1 year ago #

    Thanks for the Quick reply

    Which file should I edit?

    upprev.php?

    And should I add all 13 lines of code to the current line 67 ( */) and overwrite it or paste in front or after

    Thanks, I'm a novice at this so want to make sure I make no mistakes :)

  4. Marcin Pietrzak
    Member
    Plugin Author

    Posted 1 year ago #

    I'm sorry.

    Just replace line 67 in upprev.php file.

    from:

    if ( !is_single() && !is_page() ) {

    to:

    if ( !is_single() && !is_page() && !is_front_page() ) {
  5. SARed
    Member
    Posted 1 year ago #

    Thanks so much - That worked perfectly

  6. SARed
    Member
    Posted 1 year ago #

    This fix no longer works after updating to version 3.3.16

    Can you please advise how I should edit the new upprev.php file to enable upprev on my frontpage

    Thanks in advance :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic