Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

0
votes
1answer
8 views

User Archive page for Custom Post Type - Pagination Issue

I'm working on the author.php page and showing custom post types created by that user. Everything's working great except the pagination. Can anyone tell me what I'm doing wrong? Thanks! <?php ...
0
votes
0answers
6 views

How to filter custom taxonomy categories on archive?

I'm trying to modify my archive.php where I can select the categories and filter their records. I can display the categories, detect if is a taxonomy page, but by selecting them, they are not ...
0
votes
0answers
13 views

post_type_link 404 page not found

I have a little problem for permalink custom post. I want this structure for my custom post: /%taxonomy%/title but I have a page 404 function wpm_custom_post_type_boutique() { register_post_type( '...
0
votes
1answer
11 views

How to redirect from wp-admin/edit.php to a frontend page for specific custom post type?

I'm building a very tiny web app based on Wordpress. For this, I have created a custom post type for the items users will be able to manage in the app. I have created a very pretty, optimized ...
-2
votes
1answer
12 views

Searching Custom Posts content with JQuery

I am adapting the site's archive pages for CPT's to use a masonry layout and adding a live search to the archive page. I have a setup that is working. However I've just realized that my script will ...
0
votes
0answers
10 views

Private Client Page

I'm not a developer, nor know the basics of proagramming and have been looking for a plugin that can give me a page for each individual client that I can put reports on and other things like Google ...
1
vote
1answer
31 views

Permit users with author role to edit a custom post type

I have this already coded project which has a custom post type with a certain behavior: it is only a single post and admins/editors/authors can only edit its content. it's content is a custom data ...
2
votes
0answers
58 views

Linking three taxonomies with ACF

I'm creating a product finder using a CPT called "Products", which is already used for displaying products separately on the site. The product finder is based on a answer and question idea, where the ...
0
votes
0answers
12 views

Filter a WP_Query with search box (AJAX)?

I have a page template where I call in a custom post type like so: $caseArgs = array( 'post_type' => 'cases', 'post_status' => 'publish', 'posts_per_page' => -1, 'order' => '...
0
votes
0answers
21 views

Finding the places saved in database ,nearby the given address using wordpress

I have a custom post named stores ,in that each post contains the full details about the specific store, including the geo location. Then i have a search box in front end where the users can search ...
-2
votes
1answer
30 views

Adding a custom field after post title (ex.Example Title [30 Second Read])

function wpd_title_prefix_filter( $title, $post_id ) { if( $checked = get_post_meta( $post_id, '_wpd_title_prefix', true ) ){ $title = '[30 Second Read]: ' . $title; } return $...
0
votes
0answers
14 views

Run a blank “update” across all certain custom posts

I'm importing custom posts with Ultimate CSV Importer PRO plugin. There is custom meta value that's being calculated based on custom fields and taxonomy of a post. And for some reason, when importing ...
0
votes
0answers
16 views

How do I hide all tabs until clicked? [closed]

Hi - I am using fruitful tabs on wordpress, but I can't figure out how to hide the tabs until they are clicked on. In the example here the "About" tab is always open when the page loads, i'd like it ...
0
votes
1answer
14 views

Custom taxonomy with custom post type archive page

I created a sustom taxonomy and a custom post type via Metabox plugin. I am able to create custom post type posts and assign them to the custom taxonomies. But when I am trying to list them on an ...
1
vote
2answers
19 views

Specific query for custom post type

I am creating a directory and have a custom post type called "listings". I want to display a grid of "Most viewed" listings as well as "Highest rated" listings on my homepage and throughout the ...
0
votes
0answers
26 views

How do I combine the category code with projects page code?

I want to combine the project code with the category links code together so The image and text is should use the category link. The project archive page I use Custom Fields. The category a tag should ...
0
votes
0answers
21 views

Adding custom post type to queries - doing it the right way

I am aware that there are several questions here on adding custom post types to queries and I have read the documentation. I also know how to make this work, I am just dissatisfied with the standard ...
0
votes
1answer
9 views

Need to display author's email id in the “Edit post” field in wp dashboard. How do I do this?

I have created a custom post type & have enabled frontend posting for the same. I need the Edit post page to display the original author's email id. I already have "post author" displayed, but ...
1
vote
0answers
27 views

Disable create custom post for an user role

I am restricting the post count to maximum of 2 for a particular user role. with i am if and else condition i am able to do so without any issue..additional posts are created will not be published. ...
0
votes
2answers
44 views

Custom Post Type canonical link / pagination redirecting to root

I have inherited an existing site and have recently been asked to make some changes. They have 'renamed' the default post as 'latest-news' using this 'my_new_default_post_type': <?php add_action(...
0
votes
2answers
29 views

get_post_types() can't get some of my post type

I want to get all post types filtered by get_post_types() arguments. public static function get_post_type() { if(!$post_type = wp_cache_get('post_type', 'dsad')) { $post_type = ...
1
vote
1answer
20 views

wp_get_archives() not working for my custom post type

I have my custom post type working, but I can't seem to get the archives working. Here is my code for getting the archives: <ul> <?php $args = array( 'type' => '...
0
votes
1answer
20 views

Multiple non-hierarchical custom taxonomies frequently used terms showing up in first selected taxonomy box

I'm using WordPress 4.9.8, and I'm declaring multiple non-hierarchical custom taxonomies to use on a post type called "inventory". The non-hierarchical custom post types use the tag cloud style ...
0
votes
1answer
18 views

How to replicate data storage and querying using Wordpress. Custom posts/fields or Custom db tables?

I am new to Wordpress development but have experience of other dev. I would like to store information that in a more trad setup would mean setting up some tables with primary keys and then a joining ...
0
votes
1answer
29 views

Filter custom WP_Query by first letter of a custom field - hopefully using Search and Filter Pro?

I have a custom WP_query that very simply filters a custom post type: <?php $query = new WP_Query( array( 'post_type' => 'professionals', 'search_filter_id' => '204' ) ); ?...
1
vote
1answer
23 views

Making a custom help center page

I am working now on a new WordPress theme and I want to make a help center system to allow users that will buy my theme do add helper articles. So my plan is: 1- Make a normal new page and create ...
4
votes
2answers
72 views

WP_Query orderby custom field then post_date in one query

I need to order the first three posts by a custom field, and subsequent posts by post_date in one query - for example: Post 4 (field_order: 1) Post 3 (field_order: 2) Post 2 (field_order: 3) Post 1 (...
0
votes
3answers
37 views

Weird problem happening with custom taxonmy when creating/updating posts

I have created a custom post type as well as a custom taxonomy, however when I added my first item and selected a category/recipient something weird happened, it automatically created an additional ...
0
votes
0answers
19 views

Creating a non-hierarchical Taxonomy that behaves like categories

I've created a custom post-type along with a custom taxonomy and everything is fine, apart from one particular thing. First off, my use case: I need it to act like a category system, however not be ...
1
vote
1answer
19 views

Able to edit custom post, but unable to create new custom post when within submenu. What capability is missing?

I'm encountering funny behaviour with a custom post of mine that I'm working with in a plugin of mine. Here are the arguments of the custom post: array( 'label' => [omitted], 'labels' =>...
1
vote
1answer
43 views

How to create an array for a CPT post ID to use in an IF/WHILE statement

I am using ACF and I am trying to do the following on a page Create an array of the custom post type "Services" post IDs Check if the array has at least 1 post ID If so, for each post ID, display: &...
0
votes
0answers
16 views

Virutual generated url's, based on content CPT

I'm currently developing a website with different locations (addresses). I created a Custom Post type (locations), and the customer can add different options to this CPT like reviews, images, forms ...
-1
votes
1answer
22 views

Custom Taxonomy Tags and Category using same slug

I seem to had hit a problem with using the same 'slug' => 'publications', for register_taxonomy _category and _tag. It seems only the last call register_taxonomy('publications_tag', is able to use the ...
-1
votes
1answer
19 views

Google Analytics Dashboard for WP in Custom Column

So I've customised my custom post type columns so they display in the order I would like. add_filter('manage_publications_posts_columns', 'set_publication_custom_columns'); function ...
0
votes
0answers
41 views

JWT Authentication for WP REST API not allow other users to create posts

I have a custom post type "issues" and also custom role "clients". If my role is admin the i can create my_custom posts but when i change my user role from admin to client it don't allow me to create ...
0
votes
0answers
14 views

activate oEmbed for Custom Post Types

I have the following problem in my site: If I want to post a post in an page it works fine. But if I post a CPT Event in a page the linke won't change into the WP oEmbed style. I don't want to use a ...
0
votes
1answer
17 views

How to assign post to category

I have created custom post type and created two post category This Month and Next Month and assigned sample posts to each category. When I preview the category archive ../category/this-month a page ...
3
votes
3answers
99 views

Query Custom Post Type taxonomy type based on page

I have a Custom Post Type called books. This Custom Post Type has a taxonomy called book_category. As of now, and in the foreseeable future, there are 5 categories each book can be filtered under. ...
0
votes
0answers
52 views

Action in Ajax request does not run for some user roles

I have an ajax POST request that looks like this: var data = { action: 'like_prof', id: profID, }; $.ajax({ method: "POST", url: ...
-1
votes
1answer
10 views

Apply text based styling done for a single post in WPBakery to all posts / create a template out of it

I work on a project with several custom post types. One of these post types is called BSP. For one single specific BSP (called test BSP) I created a whole design with WPBakery, as shown on this image: ...
0
votes
1answer
75 views

How to seperate posts by categories?

I have CPT called "investment" and I want to display all the posts in that CPT by it's category. I'm doing that via shortcode. e.g. [myshortcode type_of_post="investment" cat="12,30"] and I want it ...
2
votes
2answers
39 views

Custom Post Type slug same as page name causing a conflict

I have a Custom Post Type all set up. I would like the slug to be the same as a page name, because all of these CPT's will be queried on that particular page (/team-members). If I set the Custom Post ...
0
votes
1answer
27 views

Using wp_localize_script to get data from cpt and pass it to maplace-js locations

I'm currently building an Dealerlocator with ACF and CPT. For the dealerlocator to shop the dealers on the map I want to use MAPlace-JS. This works fine when adding an array to the locations variable ...
0
votes
0answers
23 views

How to get a value from another function

I am a bit new to WordPress and i have a small problem. I'm checking if my mail was send or not and i want to save this information in a custom table that i made. I need to retrieve this information ...
0
votes
0answers
12 views

Custom post type single post to url rewrite base on meta query

can someone help me writing rewrite queries. I have a post type called chef-list, and it has a meta key chef-type meta values for chef-type are 'restaurant', 'host', etc... What I wanted to happen ...
0
votes
0answers
9 views

Problem view pagination [duplicate]

I have problems ... I try to implement a pagination but it does not work: <?php $post_type = 'automotive'; $slug = 'ford'; /* ferrari, peugeot */ $taxonomies = get_object_taxonomies( ...
-1
votes
0answers
10 views

WordPress search through excel sheet of 10k tool names

I have a list of 10,000 tools in an excel sheet that I need to be able to search through in WordPress. The list of tools does not need to stay in excel, that’s just where it is right now. I need to ...
0
votes
0answers
13 views

Custom order status not displaying well after selection/assigning in Dokan vendor dashboard

I'm using custom order status in my wordpress, It is working fine for assigning the status via the vendor dashboard. But the problem is that it is not visible to the user once the custom order status ...
0
votes
0answers
21 views

Favorites and Event List plugin

I'm trying to work with the Event List plugin and Favorites plugin. I have a program page where I want to show all the events. I've put the following shortcode in my program page: [event-list ...
0
votes
1answer
22 views

How to Use A Custom Post Type as Taxonomy for Another Custom Post Type

Having: I have two Custom Post Types; one is called movies with some detailed meta-boxes. I also have another Custom Post Types called directors again with some detailed metabolites like [name, ...