for example:
function theme_slug_include_category( $query ) {
if ( $query->is_home() && $query->is_main_query() ) {
$query->set( ‘cat’, ’19’ );
}
}
add_action( ‘pre_get_posts’, ‘theme_slug_include_category’ );
I am grateful for any help,
Jessi
Big fan of your plugin – it’s amazing.
I’d like to display 3 specific case studies in a slider on my homepage, without all the other (and future) blogposts.
I’ve tried to make unique categories for the posts I’d like to display and apply them to the shortcode using category="categoryname"
, however the slider seems to ignore the categories and instead just display the most recent posts from the whole site. Unsure if this is a bug or my user-error.
Love your plugin, thanks for it making it free!
]]>Here’s what I want to do…
Example:
1. Member A signs up to read my blog.
2. Member B signs up to read my blog.
3. I create a page called, “Posts” that is based on the blog template, where all blog posts are listed.
4. I create 6 blog posts. All marked as “private” in view settings, so these posts do not come up in search. But they can display on the “Posts” page I have created, in a list format.
5. I can give permissions on each post via your plugin, “WP JV Post Reading Groups” for specific members to read specific posts, via creating “reading groups” that I add members to. So now I give Member A permission to view posts 1, 2, and 3. I give permissions to view posts 4, 5, and 6 to Member B.
6. In the page I created to list blog posts….keep in mind that each post I make is listed there. BUT I do not want the posts I designated as “viewable” to Member A to appear to Member B in the list of posts to click on. I want these posts to essentially be invisible to others that cannot read them. Not just in content, but in listing of each post alongside each other.
Your plugin I’m using to restrict viewability to certain members works great — if you always have the direct link handy. They can read content of a private post…but they cannot see that very same post they have permission to read come up in search. Or mentioned in a list of posts they have access to.
Specific members with view permissions on specific posts works with your plugin.
But it does not allow a private post to be viewable in the listing of available posts to read for those particular members — it only allows those specific members to view a specific post’s CONTENT.
Not its listing.
I’m willing to do WHATEVERRR it takes, lol, to accomplish my goal. Just please let me know if there is a etting I’m missing, or if there’s a PHP or CSS workaround, or even another plugin to pair with yours accomplish this.
Thoughts?
]]>I just wanted to create a new snippet for a blog post of mine.
When I choose the option “Specific posts” for “Site Display” the Post list is empty, so I can not select my chosen blog post.
I tested the function on two websites, with two different themes and webprovider.
Now I helped myself with setting a blog post category which works (somehow with double tracking code).
How can I select single posts instead of blog categories?
Thanks very much in advance
]]>We are facing a problem where when we select “Specific posts” as the Query Type and gives 9 different posts, it only shows 5 of them in the carousel (front end). Also, the rotation is reversed to Left to Right. It works fine in “Latest Posts” and only give this problem in “Specific Posts”.
Could you please let us know if this is a bug or we are missing anything?
Happy to provide more details if required.
Thanks
]]>Sadly because my php coding is lacking a lot of comprehension, I have some trouble figuring this problem out.
I have the widget “recent posts” on my sidebar, but I want to always hide the first 3 posts from the list, because I always have the 3 newest posts already displayed fully on the start page. I’ve only found a way to hide specific IDs from the list, but it would be great to have something automatic.
any tips in the right direction would be appreciated!
]]>Is is possible to give a url link to display a list of specific posts by ID?
For example, I would like to show someone 3 specific posts on my blog.
Can I give them a URL that lists only these posts – maybe by using the post ID in the url?
(they are not related by category or tag, so I can’t select using these filters)
Many thanks
]]>Thank you.
Best,
newbee
https://www.ads-software.com/plugins/real-post-slider-lite/
]]>