• Resolved musicmovielover10

    (@musicmovielover10)


    Hello,

    First off great plugin and thank you.

    I’m having an issue with the first post in the category selected showing even though I have “Do Not List The Current Post” checked in the widget options.

    I need the widget to offset posts by 1, and I am assuming the options as I have them selected are correct, but it is not working.

    Can you please help?

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Martin Stehle

    (@hinjiriyo)

    “First post” and “current post” are different. So that option would not fit your needs, I think.

    I can tell you a PHP code for the offset parameter. Can you implement it?

    Thread Starter musicmovielover10

    (@musicmovielover10)

    Martin understood and yes I could absolutely implement it that would be great!

    Plugin Contributor Martin Stehle

    (@hinjiriyo)

    Please set this code at the end of the file ‘functions.php’ of your theme:

    function rpwwt_add_offset ( $query_args ) {
    	$query_args[ 'offset' ] = 1;
    	return $query_args;
    }
    add_filter( 'rpwwt_widget_posts_args', 'rpwwt_add_offset' );
    Thread Starter musicmovielover10

    (@musicmovielover10)

    Perfect…all works…thanks so much Martin!

    Thread Starter musicmovielover10

    (@musicmovielover10)

    Eek, actually, it works but there is a problem. When I log out my admin login page does not show and says there is an error.

    It says:

    Warning: Cannot modify header information – headers already sent by…..

    Why would this be?

    Plugin Contributor Martin Stehle

    (@hinjiriyo)

    There could be several reasons, so I have to guess. The code is not the reason as you wrote it woould work. Edited the PHP file can be a reason if the file ends with ‘?>’ followed by characters like space, newline, tab. In that case removing ‘?>’ at the end of the file can help.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Plugin Not Skipping Most Recent Post’ is closed to new replies.