Need post_type_archive_title function but in ‘single’

I’m trying to pull a custom post type name/title out for use in the breadcrumb of a single-[cpt].php template file. In the archive-[cpt].php I can use post_type_archive_title() and it echo the name. How would I get this same title in a single view? Thanks! I’ve trawled though the codex and haven’t seen a function, but … Read more

Display Taxonomy Image on single.php

I’m using Taxonomy Images, and I can’t figure out how to display a category’s associated image on a single.php. Essentailly, when a user is viewing a post that utilizes the single.php template, it should display the post’s category’s image. Right now, it just doesn’t display anything. This is the code that I’m using: <?php $image_id … Read more

Redirect Single Post CPT (Custom Post Type) to a specific URL

I have a domain and subdomain At the scope, I created a custom post type called resources and a portfolio grid (using Elementor) to display it’s featured image with the title. When clicking on the grid item, the single post is shown for example: I’d like to remove the single post … Read more

Archive page for custom post type not working

I use a plugin called CPT-onomies to create Custom Post Types. I created a post type called “case”, and set “Has Archive Page” to true, but when i try to view a single case, i just get 404’d. Same thing also happens if i try to view the actual archive, eg. “” and not “”. … Read more

How do I create new content pages for my Custom Post Type?

I am using Underscores starter theme and I’ve created a custom post type video. $args = array( ‘label’ => __( ‘Video’, ‘text_domain’ ), ‘description’ => __( ‘Videos’, ‘text_domain’ ), ‘labels’ => $labels, ‘supports’ => array( ‘title’, ‘editor’, ‘thumbnail’, ‘custom-fields’, ), ‘taxonomies’ => array( ‘category’, ‘post_tag’ ), ‘hierarchical’ => false, ‘public’ => true, ‘show_ui’ => true, … Read more

Multiple Single Installs of WordPress with a central user base

Im sorry that I am asking this but I have been searching for ages and for some reaseon the suggested custom user table dosn’t work, it just gives me a username error. This is the code I am taking about: define(‘CUSTOM_USER_TABLE’,’new_user_table’); define(‘CUSTOM_USER_META_TABLE’, ‘new_usermeta_table’); So I have a main Single install of WordPress, Lets say I … Read more