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
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
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 user 37548

Custom Post Types extend the WordPress back-end to support additional, non-Post content.

0
votes
1answer
I've been building my very first WordPress theme using the Advanced Custom Fields plugin. Here are the steps I've taken so far: Created custom post type via functions.php. Created archive-production …
asked Oct 1 '13 by Sam
0
votes
Using a page template I inserted this code: <?php $args = array( 'post_type' => 'productions', 'posts_per_page' => 10 ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_pos …
answered Oct 2 '13 by Sam
0
votes
I recently did the same using this tutorial: http://www.wpbeginner.com/wp-themes/create-custom-single-post-templates-for-specific-posts-or-sections-in-wordpress If you're looking for an easier option …
answered Apr 11 '14 by Sam
0
votes
1answer
I've created the following custom post type: /** * Register hire custom post type */ function hire() { $labels = array( 'name' => _x( 'Hire Products', 'Post Type Gene …
asked Dec 22 '15 by Sam
0
votes
0answers
I have a custom post type called "News" which looks like this: /** * Register "News" custom post type */ function news_custom_post_type() { $labels = array( 'name' => …
asked Oct 3 '18 by Sam
0
votes
2answers
I'm building a theme using Gutenberg for the first time. In the past, I've built custom post types like this: // Register Custom Post Type function custom_post_type() { $labels = array( …
asked Jan 24 by Sam
0
votes
1answer
I have a custom post type called "News" which looks like this: /** * Register "News" custom post type */ function news_custom_post_type() { $labels = array( 'name' => …
asked Oct 1 '18 by Sam
1
vote
Yep, you just need to add 'show_in_rest' => true Here's the full snippet: // Register Custom Post Type function custom_post_type() { $labels = array( 'name' => _x( 'Pos …
answered Jan 24 by Sam
1
vote
You can certainly set up a page template for custom post types. Give this a whirl: <?php /* Template Name: Your template name */ // Get header get_header(); ?> <div id="primary"> <?php // Query pos …
answered Mar 26 '14 by Sam
0
votes
1answer
I've created a hierarchical custom post type called "Services". Here are the pages I've added within the custom post type: Service 1 Service Child (Service 1 is Parent) Service Child (Service 1 i …
asked May 13 '18 by Sam
1
vote
1answer
When adding the "Latest Posts" block within Gutenberg, is it possible to filter by custom post type? Here are the options I can see: Would I need to create a custom block for this type of functio …
asked Jan 27 by Sam
0
votes
1answer
I've created have a custom post type called "Crew", like so: function crew_custom_post_type() { $labels = array( 'name' => _x( 'Pages', 'Post Type General Name', 'project' ), …
asked May 4 '18 by Sam
1
vote
1answer
I have a custom post type running called services: // Services function services_cpt() { $labels = array( 'name' => _x( 'Services', 'post type general name' ), 'singular_name' …
asked Feb 4 '14 by Sam