• Is there any way… to use sidepost and show the posts in home page as well???

    Like a setting… tweak in the plugin etc???

Viewing 3 replies - 1 through 3 (of 3 total)
  • I answered in other post, but no, there is no way to show it on home page. The plugin purpose is just to hide aside posts from home and most archives.

    You can comment line 66 on widgets.php to remove the pre_get_posts action. With this, aside posts will be shown everywhere (Home, archives, feeds…).

    I mean to comment or remove this line:

    add_action('pre_get_posts', array(&$this, '_postsFilter' ));

    The only problem is that you will have to remove or comment this line on every plugin update.

    Thread Starter saravanaruby

    (@saravanaruby)

    Thanks Txanny.

    I will give it a try.

    Next…. can we use this commenting part to write some sort of ‘if-else’ condition and show some categories and not-show some categories everywhere??

    No, cannot set an ‘if-else’ condition there, as all category filters are applied at once. This is because also the WordPress query gets all posts at once.

    To do what you want, have to hack the _PostsFilter method, to only filter categories you want.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: SidePosts Widget] Side Post – want messages in home’ is closed to new replies.