custom-post-types

Custom Post Type with Template – Template is not used – WordPress Website Design Article

i created a custom post tpye function ABECrm_post_type() { $labels = array( ‘name’ => __( ‘Agenden’, ‘ABECrm’ ), ‘singular_name’ => __( ‘Agenda’, ‘ABECrm’ ), ‘add_new’ => __( ‘Neue Agenda’, ‘ABECrm’ ) ); $args = array( ‘label’ => __( ‘agenda’, ‘ABECrm’ ), ‘description’ => __( ‘Hier werden die Agenda-Seiten eingetragen’, ‘ABECrm’ ), ‘labels’ => $labels, ‘supports’ => array( ‘title’, ‘editor’, ‘custom-fields’, ‘page-attributes’ ), ‘hierarchical’ => true, ‘public’ => true, ‘show_ui’ => true, ‘show_in_menu’ => true, ‘menu_position’ => 20, ‘show_in_admin_bar’ => true,…

Read More

custom post types – Creating Site with Menu Like HomeDepot.com Without Cart/Purchase Option – WordPress Website Design Article

I’m new to WordPress and want to make a catalog site with a menu system like HomeDepot.com, Target.com, Walmart.com, etc. but without the option to purchase items. My needs are listed below, and I’m wondering what plugins/modifications will be necessary to achieve what I’d like to do. I have experience with Drupal and can do some template modification and PHP without much trouble – I just need to understand the WordPress system a little better. I need to build a…

Read More

custom post types – Connect acf plugin to gravity form (Upload File) – WordPress Website Design Article

I created custom field for post type next i designed form with gravity forms for submit post.User fill form and send it.I can see all custom field (like text box, drop down and other) worked except upload file in my wordpress panel, user upload images but i can’t see in post edit page (Note : image use for gallery not post thumbnail).I checked any plugin and code but not work. I think plugin and code Not compatible with acf(v 5.7)…

Read More

How to show posts in taxonomy loop – WordPress Website Design Article

I have a nested list of a particular taxonomy but it only shows the taxonomy names. I want to actually show the list of posts for that custom post type for that taxonomy. Do I need to use WP_Query to get the posts or what is the best way to achieve this? <?php $categories = get_terms( ‘my-taxonomy’, array( ‘hide_empty’ => 0, ) ); $subcategories = $subsubcategories = $categories; foreach ( $categories as $category ) { // Only top level terms…

Read More

Showing a count for custom post type and taxonomy – WordPress Website Design Article

Using WP Job Manager, I’d like to present a section on a page where I can show 4 selected categories, and under each category to display a count of how many listings are in it. I have the custom post type “job_listing”, the taxonomy “job_listing_category” and tag ID for each of the categories (e.g. 106) Been searching on SE for few hours to no avail – any help is appreciated. Also, is there a way to achieve the same with…

Read More

Custom post type single with custom URL structure – WordPress Website Design Article

I have a function that rewrites the URL before post slug including a custom taxonomy function wpa_show_permalinks( $post_link, $post ){ if ( is_object( $post ) && $post->post_type == ‘aktuelles’ ){ $terms = wp_get_object_terms( $post->ID, ‘nachrichtenkategorie’ ); if( $terms ){ return str_replace( ‘%nachrichtenkategorie%’ , $terms[0]->slug , $post_link ); } } return $post_link; } add_filter( ‘post_type_link’, ‘wpa_show_permalinks’, 1, 2 ); The function works just fine and replaces %nachrichtenkategorie% in URL when accessing from the archive Getting the permalink of a post with…

Read More

Adding Multiple Post Types to Query – WordPress Website Design Article

I’m trying to add a ‘Lessons’ post type to populate the wp-query as well as the pre-existing post type ‘Modules. Preferably I would like them to be combined into one query showing the most recent 6 posts. I’ve only been able to get them showing in 2 different queries thus far. <?php //Template Name: Last 6 Modules remove_action( ‘genesis_loop’, ‘genesis_do_loop’ ); add_action( ‘genesis_loop’, ‘ca_show_last_six_modules’ ); function ca_show_last_six_modules(){ $modules = new WP_Query(array( ‘post_type’ => ‘module’, ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’,…

Read More