Support » Plugin: Display Posts Shortcode » Want to hide posts from post page ; )

  • Resolved macfocus



    First, I really like the plug-in.
    I am trying to use this plugin for 2 purposes.
    1. showing posts on a specific page
    2. hiding all posts form the posts page (which is “Home” in this case)

    Normally this can easily be done with standard WP functions, but I use WooCommerce with a WooTheme (artificer). This forces me to use the basic WP settings for page assignment, otherwise the theme/plug-in won’t show as designed.

    Purpose “1” is working fine with the plug-in

    But number 2 is more difficult. There is no way in the WP back-end to edit the “Home” page since it is the standard page. I was trying to be smart and thought of putting a short code in there with a non-existing category or something like that. But since the page is not shown in the “Pages” section, nothing to change there…

    So I should likely edit some file somewhere.

    Question is which one, and what should I put where?

    Thanks in advance for any insight.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Bill Erickson


    I think what you’re trying to do is:
    a) remove all posts from showing up on the homepage; or,
    b) be able to use the Display Posts Shortcode on the homepage

    Both have the same solution. Go to Pages > Add New, and create a page called Home (or whatever you like). Then go to Settings > Reading, and select “use a static page on the front page”. For the front page, select the page you created

    Hi Bill,

    Thank you for your reply.

    You are almost right, and you’re idea was the obvious one I already tried.

    Let me refrase my goals:
    a. I want to hide all posts from my home page
    b. I want to show them on another page.

    Sounds simple, but:

    As for as I can see my plug-in or theme (am not sure which, assume plug-in) needs the basic WP setting ” Settings -> Reading -> select “your latest posts””.
    If I do not use this settings I will not get all functionality from my plug-in (or theme)
    That’s the reason your idea wil not work.

    Is this plug-in capable of hiding all posts from the page with is assigned to show “your latest posts”?

    And secondly: can I use it to show the posts somewhere else (assume so, that’s what it’s for) ; )

    Plugin Author Bill Erickson


    No, this plugin will not help you in turning off the display of posts on your main page. All it lets you do is create listings of posts on other pages using a shortcode.

    The best approach for what you’re trying to do is probably using the pre_get_posts hook to modify the main query on the homepage. Here’s a tutorial. Actually writing the code to solve your issue is beyond the free support I offer in these forums.

    Hi Bill,

    Thanks again for you time.

    I fully understand your line about the free support, no problem at all.
    For now I can solve this by simply using a page. If and when the shop will really take off, I can look into it further.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Want to hide posts from post page ; )’ is closed to new replies.