Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Marcin Pietrzak

    (@iworks)

    Hi, how can i hide the thank you pages or promotional pages that i don’t want to show to my visitors???

    Could You explain more precise? I don’t understand.

    Thread Starter dermaDF

    (@dermadf)

    Sure.

    I have different categories, among them there is one called “uncategorized” in which my thank you page (that will appear after someone fills up a form) and other posts in that category that i don’t want them to appear when UpPrev is suggesting related pages… so how do i exclude the category “uncategorized”?

    To sum up, how to avoid one category to display on Up Prev?

    I don’t have YARRP becuase it conflicts with my theme…

    My page https://www.dermatologodf.com

    Plugin Author Marcin Pietrzak

    (@iworks)

    Excluding category is planned in version 4.0 but as paid feature (pro version).

    Thread Starter dermaDF

    (@dermadf)

    In the meantime, can i do something about avoid showing specifically 2 posts?

    Plugin Author Marcin Pietrzak

    (@iworks)

    Yes. You can use “iworks_upprev_filter_where” filter:

    add_filter( 'iworks_upprev_filter_where', 'my_function' );
    
    function my_function( $where = '' )
    {
       return $where.' ID is not in ( 10, 11 ) ';
    }

    Change “10. 11” to proper IDS.

    Thread Starter dermaDF

    (@dermadf)

    Sorry but were do I place that?

    Is there a page with the instructions?

    Thanks for the answer!

    Plugin Author Marcin Pietrzak

    (@iworks)

    Sorry but were do I place that?

    There are three ways:

    1. made a one-file-plugin and put file into wp-content/plugins, then turn it on
    2. made a one-file-plugin and put file into wp-content/mu-plugins
    3. put this code into function.php in current theme

    I recommend using option 1 or 2, but 3 is the easiest.

    Is there a page with the instructions?

    Some instructions you can find on https://upprev.com/

    I tried this with no results.

    Again, If I understand right, replace the 10 and or 11 with the page ID to exclude from the flyout.

    I inserted into the function.php file…My contact page still shows.
    My example:

    add_filter( ‘iworks_upprev_filter_where’, ‘my_function’ );

    function my_function( $where = ” )
    {
    return $where.’ ID is not in ( 798, 11 ) ‘;
    }

    I got the page ID by hovering over the page edit link: post:798

    Unrelated, this function worked as expected (in function.php)

    add_filter( ‘iworks_upprev_box’, ‘add_my_content’ );

    function add_my_content( $content )
    {
    $text = ‘xxxxxxxxxxxxx’;
    return preg_replace( ‘@</h6>@’, ‘</h6>’.$text, $content );
    }

    Any words of wisdom? Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Hiding Thank you Pages and Secret PAges HELP!!’ is closed to new replies.