Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 38553

Custom Post Types extend WordPress to support additional content.

0 votes
1 answer
1k views

Getting titles from an array of IDs

I have two custom post types called actors and movies. In movies, I have a custom meta box that got data from actors post type. When an actor is selected in movie post, the values (post_id, meta_key …
marcelo2605's user avatar
0 votes

Add category base to URL in custom post type/taxonomy

If you're using get_post_type_archive_link(), maybe you will need to remove /%cat%/ from the URL using post_type_archive_link filter.
marcelo2605's user avatar
2 votes
2 answers
15k views

Using DISTINCT in wp_query

I need to create a system where the user first selects the state, then select the city and then see the information of the stores in that city. For this, I created a cpt called store with 2 meta boxe …
marcelo2605's user avatar
1 vote
1 answer
4k views

get_post_meta is returning image id

I'm using this script to get image filename, stored in a custom meta called background: $background = get_post_meta( '22', 'background', true ); echo $background; But it is returning the id of the …
marcelo2605's user avatar
0 votes
0 answers
19 views

Pagination not working for cpt [duplicate]

I'm using this script to catch posts from a custom post type $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $args = array( 'post_status' => array('publish', 'future'), …
marcelo2605's user avatar
2 votes
1 answer
381 views

Get the next event using date_query

I created a CPT called event and want to make a query to show the next future event, based on it's publish date. Here is the WP_Query args: $today = getdate(); $args = array( 'post_status' => ar …
marcelo2605's user avatar