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

learn more… | top users | synonyms (1)

0
votes
0answers
10 views

Add Template Selector Drop-Down to LearnDash Custom Post Types Array

I have a set of functions that I found online which add a meta box for templates to my WP Post editor and it works perfectly (http://pastebin.com/0WdPAWM1). I tried to modify it to be applied to an ...
0
votes
0answers
18 views

Creating custom ordering for taxonomy with custom post types

I have a challenging specification for taxonomy archive post listing: archive contains two post types (posts and CPT) and those should be ordered by distributing types with a ratio. For example: - 1 ...
0
votes
1answer
36 views

Wordpress Count posts within a custom post type

How to WordPress count post within this code. <?php query_posts('showposts=6'); ?> <?php $posts = get_posts('numberposts=6&offset=0'); foreach ($posts as $post) : start_wp(); ?> <?...
0
votes
0answers
9 views

How to export .ics feed with my events made by Custom Post Type

I made custom post types to make event pages for my local orienteering club (cascadeoc.org), and I'd like to also post a link to subscribe to an .ics feed, generated of course, from the custom post ...
0
votes
0answers
10 views

Custom post submit form

I have a photo blogging website, and I want to create a custom form for posting posts. I got stuck on the part where I can upload and set a future image at the same time. With the standard WordPress ...
1
vote
1answer
20 views

What template files do I need to customise custom-category-term-links rather than fall back on archive.php?

in my theme (built from scratch), i addad custom post types and custom taxonomies. To my template structure i added: page-customname.php archive-customname.php category-customname.php tag-customname....
0
votes
1answer
19 views

Create a WP_Query where if the first value of the first row is equal to the second compare other value

I want to create a query of a custom post type where the order is by a custom field and I want if the custom fields are equal to compare a second custom field. $args = array ( 'post_type' => ...
0
votes
0answers
17 views

Add an accordion - like the one on the Menus page

I want to add an accordion to a custom dashboard option page, like that in WordPress Dashboard -> Appearance -> Menus -> Pages: I've tried many ways to do this but failed. Is there any function ...
-2
votes
0answers
26 views

Siloing with wordpress - For professionals only?

want I want to do: I want to change the structure of my website. I have two custom post types(CPT) "car", "bike" and a blog. I am using CPT UI Plugin for the custom post types. But I don't get ...
-2
votes
0answers
9 views

How can I get just the title of a custom post type based on the date custom field? [on hold]

I'm converting a closed CMS site into a WordPress site and they have a good "plugin" to show just the title of the Lunch of the Day on the front page (see http://sirkanleipomokahvila.fi) and the ...
0
votes
0answers
19 views

custom field shows also images of other posts in lightbox

function wp_list_mine_posts( $wp_query_obj ) { // Front end, do nothing if( !is_admin() ) return; global $current_user, $pagenow; wp_get_current_user(); // http://php.net/...
-1
votes
0answers
31 views

How to export CSV file for custom post type in WordPress without using plug-in?

I am new to Wordpress. I created the custom post types using Types plug-in and created some posts in that. Now I want to export the post as a CSV file without using Wordpress plug-in ?. Can anyone ...
1
vote
1answer
42 views

Made Custom Post Types, but single.php not working

I made some Custom Post Types, filled them up with some posts, added the template tags to the templates. The problem now is that whenever I click the 'Read More' button on a custom post type (...
0
votes
0answers
18 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
39 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
13 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
2answers
17 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
16 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
27 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
21 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
25 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
20 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
15 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
20 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
15 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
24 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
36 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 ...
1
vote
0answers
16 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
48 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
32 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
27 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 ...
0
votes
1answer
33 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
19 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
30 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
31 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
59 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
15 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
38 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
15 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( '...