Tag Info

New answers tagged

0

The easiest way to create a custom post type in WordPress is by using a plugin. This method is recommended for beginner because it is safe and easy. For example : Custom Post Type UI The problem with using a plugin is that your custom post types will disappear when the plugin is deactivated. you can manually create your custom post type by adding the ...


0

You need a meta query. There's also documentation on ACF for querying dates. <?php $event = new WP_Query( array( 'post_type' => 'gacr-event', 'posts_per_page' => 5, 'orderby' => 'meta_value_num', 'order' => 'DESC', 'meta_query' => array( array( ...


10

I believe what you're referring to is called "Post Types". By default, WordPress has a complete post types you're already familiar with - post ( news / blog ), page ( Pages ), attachment ( Media ), revision ( Page / Post Revisions ). You can read up on the full list of built in post types on The Codex - Post Types. If you want to register a new Custom Post ...


0

These are called custom post types. There are several ways to create new post type, using a plugin or creating yourself. If you prefer using a plugin, try this- https://wordpress.org/plugins/custom-post-type-ui/ If you want to create them yourself without any plugins, you need to add some codes to functions.php file in your theme. This is a simple example: ...



Top 50 recent answers are included