Display a grid of taxonomy terms at root taxonomy page

After researching some more I’ve given up trying to use the taxonomy template and opted for a plugin to amend the permalinks. I followed some of the advice from this similar question: Taxonomy archive with same slug as custom post type? Currently I am using an amended archive template for the custom post types and … Read more

Query Post Object in WP Admin

The Beta of ACF 5.8 lets you create Gutenberg blocks with custom fields. You can preview these block in the editor. Sadly, you have to be an ACF-Pro customer to use the beta. Otherwise you could try to fetch the custom fields via the REST-API utilizing this plugin: https://github.com/airesvsg/acf-to-rest-api/ Refer to this answer on how … Read more

Meta Query Filtering not working on Custom Meta Box using Radio Buttons

I think I found another way. Seems to be working great. /****** CUSTOME POST-TYPE ******/ <?php // CREATE CUSTOME META BOX function r_create_mb_bids(){ add_meta_box( ‘r_bid_visibility_mb’, __( ‘ Bid Visibility’, ‘bids’ ), ‘r_bid_visibility_mb’, ‘bids’, ‘normal’, ‘high’ ); } add_action( ‘add_meta_boxes’, ‘r_create_mb_bids’ ); // DISPLAY IN ADMIN function r_bid_visibility_mb( $post ){ global $post; $bid_data = get_post_custom($post->ID); $visibility … Read more

How to display Custom Taxonomy under Custom Admin Menu?

You haven’t properly registered the taxonomy for your post type. You register your post type like this: register_post_type( ‘custom-post-type-1′, Meaning that your post type is named custom-post-type-1. But when you register the taxonomy, you’re registering it for a post type called my-menu“ register_taxonomy( ‘custom-taxonomy’, ‘my-menu’, You need to register your taxonomy for your post type: … Read more

Custom post registration causing errors

There are many small problems with this code (see my comments below): function gt_custom_post_type() { register_post_type(‘project’, array( ‘rewrite’ => array(‘slug’ => ‘projects’), ‘labels’ => array( ‘name’ => ‘Projects’, // <- missing comma ‘singular_name’ => ‘Project’, ‘add_new_item’ => ‘Add New Project’, ‘edit_item’ => ‘Edit Project’ ), ‘menu-icon’ => ‘dashicons-media-document’, ‘public’ => true, ‘has_archive’ => true, ‘supports’ … Read more

A to Z List of Custom Post Type in three columns

The problem lies in this line: $rows[$count] = $rows[$count] . ‘<div class=”col-sm-3″>’ . ‘<h4>’.strtoupper(get_the_title()[0]).'</h4>’ .'<div class=”post-title”>’. ‘<li><a href=”‘.get_permalink().'”>’.get_the_title().'</a></li>’ . ‘</div></div>’; As I understand your code correctly, it should append another column item to given row. But it doesn’t do it – it overwrites the content of given row with current column. So it should look … Read more