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

learn more… | top users | synonyms (1)

0
votes
0answers
11 views

Adding a term to a listing inside of shortcode that otherwise contains permalinks to custom post items with custom field values

I have this shortcode to output all items of custom post type "song", on a page listing all the songs a musician released throughout his career. // Custom shortcode, to query tracklistings on the ...
0
votes
2answers
35 views

How do I disply an array inside a custom post type?

I tried to create a table output with the content of a custom post. I can echo my city properly: <span style="font-weight: bold;">city: </span> <?php echo get_post_meta($post->ID, '...
0
votes
0answers
11 views

WP_Query sorting by Taxonomy

I am trying to display the custom post type of accommodation that have a the location of wa under the Location taxonomy. Although i am not having any luck. Can anyone tell me what i'm doing wrong? $...
0
votes
1answer
12 views

How to filter url on post submission?

I would like to swap out image URLs upon post submission on both content editor field and a custom field cover_image of a custom post type article. For example, the original content may contain image ...
0
votes
1answer
15 views

Custom Post Type by user

I made a Custom Post Type for events that can be added in the admin by only certain groups of users, like a Secretary. This Secretary can add some new events, but I want to display each user his own ...
1
vote
1answer
21 views

Create a shortcode to display custom post types with a specific taxonomy

I created a page template to list all products of a specific product line. Now I want to list all posts from this custom post type (products) based on the taxonomy described in the shortcode for each ...
0
votes
1answer
13 views

Custom columns doesn't appear in custom post type

Hi i have a 'tour' custom post types and when i add a custom column at this post type there is not any custom column at tour post type my code is here function tour_price_col( $column, $post_id){ ...
0
votes
0answers
18 views

how to filter post only parent in admin list table

I make custome post type hierarchy and than i make some post consist of parent and child, on list table it showing like this : parent_1 child_1a child_1b parent_2 child_2a child_2b My ...
0
votes
0answers
20 views

Add column to custom post type based on assigned taxonomy

I'm trying to add a new column to the Custom Post Type I've created. I've also created a custom taxonomy for this CPT, so what I'm wanting to do is display which taxonomy term each post has assigned (...
0
votes
1answer
18 views

Render the metabox input values as HTML

I'm new to PHP and WordPress. I've created a site on WordPress, where the user can add an HTML code snippet (the inputs are taken using a metabox and displayed). The problem is WordPress doesn't ...
0
votes
1answer
14 views

Is there a way to group specific CPTs under a single dashboard menu item?

My next project may involve dozens of CPTs (it's a ad board and each category would be a CPT, for example CARS and associated special attributes like mileage, gas/petrol and such as custom fields). ...
0
votes
0answers
18 views

Rewrite rule with a custom post type and a custom field

I'm creating a website that will display, from a search by location, a list of singer. If we click on a singer I will have to display that singer with the city inside the url. Here are the two ...
0
votes
0answers
7 views

lock edit content on edit page

I'm on a multisite project, and I need some help. I have to duplicate some post (i use multisite duplicator post) and if they are not coming from this blog (blog_id origin stored already store in ...
0
votes
1answer
15 views

Can I assign a theme to a custom post type?

I have created a custom post type via plugin called landing-pages with a slug /landing/. I would like to assign a theme when the visitor visited a site with the slug /landing/ and when he visited a ...
0
votes
0answers
14 views

Custom pages missing on “front page” setting

I have a custom post type with 9 custom pages on WP 4.5. When I got to Settings -> Reading -> A static page -> front page dropdown, I see a list of all the standard wp pages plus at most 5 of my ...
0
votes
0answers
23 views

How to change add new post link for custom post type

I have developed a custom page for creating a new post for my custom post type. I want to change "Add New" link as seen in below picture: Note: I have checked edit.php source code (see below) but I ...
0
votes
0answers
18 views

Auto assign product category based on vendor [WOO] [closed]

So i have done my fair share of googling and fiddling with functions.php with no luck so far. So here's what i want to achieve. Say there are multiple vendors: Vendor1, Vendor2, Vendor3 and so on. ...
0
votes
0answers
35 views

Permalinks not working when using a custom query for a custom post type

I'm using WP_query to get a list of items from a custom post type. The code I'm using for the query is this: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $loop = new ...
-2
votes
0answers
13 views

Posts 2 Posts Plugin Guidance [closed]

I'm making a doctor portal clinic website in which the doctor will have the WordPress dashboard in which he will be able to add the patient's details, prescription, etc For Patients and Prescriptions ...
-3
votes
0answers
19 views

PHP parse error [closed]

I'm getting 'Parse error: syntax error, unexpected end of file'. Here's my code: <?php $connect = mysqli_connect("localhost", "root", "", "student"); include("PHPExcel/IOFactory.php); $html = '&...
1
vote
0answers
15 views

School & class blogs: Categorize with categories or custom posts?

A school is using WP as the presentation frontend. Posts are created to publish news (category news), articles (category articles) and featured content (cat. featured). The school would like to use ...
-1
votes
0answers
20 views

Replace woocommerce product categories taxonomy with already existing categories taxonomy

I have a theme that already has custom post types with taxonomies registered to it I also have woocommerce and as I'm integrating woocommerce with this theme I need to replace the registered ...
2
votes
1answer
45 views

Add comments meta fields to comments metabox on post edit screen

I have few custom fields in comment form. How can I add these fields to comments metabox? I divide my question on 3 parts: 1) How to remove url field and add custom comment fields to comment quick ...
1
vote
1answer
31 views

unable to show custom post type featured image

I am trying to get the featured images of custom post type images. I am using this code. All of my posts have images but I am unable to show. <?php $posts_array = get_posts( array( '...
0
votes
0answers
10 views

Multiple custom post type authors

I've got a custom post types that I would like to make editable by several users. I saw some solutions that used the plugin co-author plus but this only works if I set the authors using the admin ...
0
votes
1answer
25 views

Send email messages after comment was submitted

I need to send 2 email messages: if comment was submitted and when comment was approved. Without any plugin of course. How can I do this?
0
votes
1answer
15 views

Wordpress query posts by custom post type not workng

I'm trying to display the featured images of my custom post type of 'instrument' I created the custom post type using the plugin 'Custom Post Type UI' The query seems to work, but the problem is ...
-2
votes
0answers
26 views

Remove custom taxonomy base slug or not, what is the industry standard?

I have been working on a Wordpress theme for over 6 months now. My plan is to release it as a free theme and then possibly add more features and sell it as a premium theme. I am very experienced with ...
0
votes
1answer
28 views

Page Templates Drop Down Select for Custom Post Types

I have a custom post type called location. I would like to be able to use 2 different templates for this custom post type and select it via the page attributes box. I have a template set up and can ...
0
votes
1answer
15 views

CPT UI change custom taxonomy url

I have created new post type "groceries" and created "fruit" taxonomiy and added bunch of category but when I filter this category url shows like this .localhost/fruit/apple I'd like show it like ....
0
votes
1answer
5 views

Custom taxonomy query for a custom post type

I have a custom post type called news with a custom taxonomy called news category. Right now I have a template called taxonomy-news_category-press.php where press is one of the news_categories. The ...
0
votes
0answers
26 views

Rewrite URL custom post type with add_rewrite_tag

i'm registering a custom post type with the current code: 'query_var' => 'lookbook', 'menu_position' => 0, 'menu_icon' => 'dashicons-admin-tools', 'rewrite' => false, 'has_archive' => ...
0
votes
1answer
29 views

Create an archive page for custom post type with custom taxonomy

I have a custom post type called 'news' with a custom taxonomy called 'news category'. I'd like to create a wp query to return all 'news' posts of a certain 'news category' for example 'press'. Is ...
1
vote
2answers
54 views

Is there a way to list posts of only a certain category

I want to add a new menu point to post that shows posts of a certain category. Adding a new page is easy if it is just a new post type. But I want to only show posts with a specific category and when ...
0
votes
2answers
16 views

Displaying the Taxonomy and a Queried Term on a taxonomy.php page?

I'm using a WP plugin Called Search and Filter to filter a custom post type — a user directory. The plugin lets a user filter the directory by specifying terms. It will also let a user filter the ...
0
votes
0answers
20 views

I need help creating a filter for my custom post type with multiple custom taxonomies and terms using isotope!

I have a custom post type called 'recipes' and 4 custom taxonomies called 'main_ingredient', 'courses', 'dietary_requirements' and 'cuisine'. I'm using Isotope to create the masonry style grid and ...
-4
votes
0answers
6 views

Collapsible/Expandible articles messing up embedded videos

I am currently working with the Newspaper theme by TagDiv. I would like to make my articles expand. For example, I want my articles to show a snippet of the content with a button that says "Continue ...
0
votes
0answers
13 views

How to hook save-post function to use taxonomy term in post-slug?

Hook save-post function to check if taxonomy term is attached or not. If attached then, use taxonomy term in post slug like "taxonomy-term-other-words"...
0
votes
1answer
37 views

Making my custom column sortable

I am using custom post type with a relationship field with ACF and trying to get a column of number of times the "location" has been used in posts (this is my custom post type - location). I have ...
1
vote
1answer
32 views

How to retain $_POST data when submitting form to custom page

I have written a plugin whose job is to create a custom page with a user subscription form. The form page is created like this: $page = [ 'post_type' => 'page', ...
0
votes
0answers
13 views

How to assign Capabilities to custom field

I have created a plugin in in which I have created post types and custom taxonomy and set custom capabilities for this Here is code for post type function create_product() { register_post_type( '...
0
votes
1answer
29 views

Metabox saving values

I have 2 metaboxes ("prices" and "dates") on my custom post type ("kvkoolitus") edit page. As I thought right, wordpress saves values only from first rendered metabox. Each metabox code stored in ...
0
votes
0answers
14 views

Page to display different taxonomy categories

I've set up some custom post types with custom taxonomies. The categories (of the taxonomy) should act like subpages. I'll give you a short setup of my page structure so that everyone knows what I ...
0
votes
0answers
27 views

404 custom post type

I've set up some custom post types and wanted to visit the pages but I only get 404 errors. I've searched the web and it seems to be a known problem, but I didn't find a solution that worked for me. ...
0
votes
2answers
47 views

Add a Template to a custom post type

I'm recoding my website with custom post types to be better organized, have a better search experience and being able to hide some pages from other contributors, but I have a little problem. I've set ...
0
votes
1answer
30 views

Get posts for custom post type with WP_Query

I'm trying to make a custom post return a query and display but instead it is returning and showing the default/standard post. How do I get posts from my CPT? $query = new WP_Query( array( '...
0
votes
1answer
13 views

I'm trying to create a custom version of the wp_list_authors function that includes custom post types

I'm trying to create a custom version of the wp_list_authors function that includes custom post types. I have 3 authors on the site I'm working on (www.healthyeatingadventure.org). Two of them only ...
4
votes
3answers
59 views

Add Content to Page without shortcodes

The site I'm working on has a couple of pages that needs to be filled with different content elements like text image combinations, sliders, lists of content, etc. The client would need to re-order ...
0
votes
0answers
25 views

Create a Page (Template) based on a URL with other Post-Slugs

We are building a WordPress site based on a theme (Eduma) and a plugin (Learnpress). Nevertheless this question is just indirectly about that plugin, which is why I ask this question here. The plugin ...
0
votes
0answers
15 views

Use Shortcode to pull specific custom post type into any page

I'm looking for a way to code a shortcode like [shortcode slug="slug-name"] that will pull data from the slugs specific custom post type and fill the variables of my template that I'm attaching or ...