Feature Post Widget still displays posts on Front Page
  • Hi!

    Some of the problems that started with the WP upgrade to 3.3.1 have been solved with Magazine Basic 2.7.7 (layouts not working, e.g.). However, the Featured Post widget installed still does not exclude the Featured Post from the Front Page.

    How can I fix this? I saw a discussion from a couple of years ago which leads me to believe that

    'post__not_in'=>$notin,


    was the relevant line of code for the Featured Post to NOT be included in the Front Page. While it is currently IN the index.html page, it is not specifically in the footer.php page which was also cited in that previous discussion. So, I presume that many updates of WP later, some other things have changed.

    What should I do now?

    Thanks!

  • Sorry! I meant index.php above of course! :)

  • Once again, sorry! This is for Magazine Basic.

  • cbavotacbavota February 8

    Open up loop.php and go to line 18. Change it from this:

    18
    if(is_active_widget('widget_myFeature')) {


    To this:
    18
    if(is_active_widget('pbt_widget_myFeature')) {

  • Thanks very much!! Worked like a charm! :)

    So, the widget name changed then? (I am trying to learn this--what is the 'pbt'?)

    Thanks again!

  • cbavotacbavota February 9

    I had to give each function a prefix due to a change in the WordPress theme requirements. It is to help avoid function name conflicts.

  • karenshepherdkarenshepherd February 10

    Oh, okay. Thanks for the explanation! That makes sense.

This discussion has been closed.
← All Discussions

Hey there!

Take a look around, and if you would like to add a comment or start a discussion, register by clicking on the button below.

Register

Categories

In this Discussion

Tagged