post__in not taking my list of IDs
I have a Custom Field on a page named banner_id_list
.
I have a Custom Field on a page named banner_id_list
.
I’m using gpp slideshow, which overwrites wordpress’s default gallery display. I only want to use it on my custom post type, “listings” – how would I reference it to only replace wordpress’s default gallery on the “listings’ page?
Each post has a lat/lng value attached to it via postmeta. I’m trying to grab all posts within a bounding lat/lng value. Here’s the get_posts
query:
I’m trying to get the category ID from Kirki Function and then pass the ID into a loop to get View all posts from that specific category id with name.
I write this code at the backend:
I have two custom page types. the first is “product” and the second is “accessories”. On the product page, there is the accessories category “inputs” raleted post. Inputs encode values like “0601,0603 etc”. These codes are also product codes. When I enter the product code with the metabox, functions start in certain areas. such as product table, product picture. How can I print this code in the term section.
I want to load 3 posts that have the same custom field value as the current post.
for example:
The current post has 3 custom fields:
color: black
background: red
lastname: doe
Now I want to load three posts with these custom fields:
first post: color:black
second post: background:red
third post: lastname:doe
these are my codes:
On my newly installed multisite with 1 installed plugin ACF. And all code below is not being run though any filter or action and on the front end.
So here is my problem
I want to show Posts if have same category if not have post then show post of same tag. And to do that I am using “pre_get_posts” action. and setting query like following.
This works well on archive.php
, but not working on the homepage. For some reason, the first statement doesn’t get applied: if a post is in Members category and user is not logged in, it’s supposed to show a default placeholder image, but instead it’s still showing the actual post thumbnail.