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

learn more… | top users | synonyms (1)

0
votes
0answers
7 views

Rewriting URI of custom post type

This is a follow-up question to this thread: How to rewrite URI of custom post type? I'm using WooCommerce on one of my customers' sites and we use the following permalink structure: ...
1
vote
1answer
20 views

current_user_can() return FALSE but debugging says TRUE

BACKGROUND I have created a must-use plugin where I keep general functions. Like register_post_type(). Here I've created several Custom Post Types. With the help of several really good posts, I ...
0
votes
0answers
12 views

Custom Post Type below second level mainmenu

I want to have the following structure in my website menu: Home | for Beginners | for Experts | Contact | | Reports (CPT) Reports (CPT) Jobs (CPT) Jobs ...
0
votes
0answers
8 views

Redirection of custom post type

I have the following custom post types on my old site which have that structure: http://example.com/cpt-name_a/post-name http://example.com/cpt-name_b/post-name i've created only one custom post ...
0
votes
0answers
20 views

Custom post type not displayed in breadcrumbs on archive page

I created new custom post type and am having problem with displaying the post type name in breadcrumbs. It should display "Home » Study » test study", but it displays Home » » test study". Site: ...
0
votes
0answers
29 views

Custom Post Type Archive Looping Issue

I inherited a site that has a CPT for Events. The Event Archive keeps just keeps looping through the first 5 events. I've been fixing so many things on the site, my eyes are starting to cross. This ...
0
votes
0answers
15 views

How to show single post from custom post type with shortcode

I know the topic have been around before, and have read extensively on the subject, without finding a complete solution. My goal is to have a shortcode that calls a single post, from my custom post ...
2
votes
0answers
12 views

next_post_link and previous_post_link in custom post type single page, in same non-custom category

I have a custom post type "realisation", for which I've made a file single-realisation.php. These posts use the non-custom taxonomy "category". In this page, I use the next_post_link() and ...
0
votes
0answers
10 views

Create a custom post-type catalog by category?

Essentially I am creating a product catalog without any eCommerce features so I'm using a custom post-type as the product and I want to group these into categories for catalog display purposes. ...
0
votes
1answer
11 views

Categories won't appear on custom post type

I've registered a custom post type called 'document', and want to add category support. I understand that either register_taxonomy_for_object_type('category','document'); or adding 'taxonomies' ...
1
vote
2answers
41 views

How to add a button to custom post type's posts-page

How can I add a button to a posts -page. (In this case a custom post type). I'd like to place it next to, or near, the "Add new" button, to import content from a web service.
0
votes
0answers
17 views

Get archive of posts separated by taxonomies and subtaxonomies

I'm making a website that lists hotels by region and sub-regions. I made a custom post type called Hotels and a custom Taxonomy called Regions. I've inserted countries as parent regions and states as ...
0
votes
1answer
17 views

Different videos for different posts

I am a front end developer not with very backend stuff. I just wanted to know that I'm building a website and I need to provide options so that each personality on the website has different videos. ...
0
votes
1answer
12 views

Revert to previous dropdown options after change

I have two dropdowns (which are using Chosen.js). The second dropdown displays custom categories: <script type="text/javascript"> jQuery(document).ready(function($) { ...
0
votes
0answers
22 views

How can I get the $key / $value pairs of custom fields that were added via 3rd party plugins or themes?

I'm running WP Job Manager plugin which is designed to allow its custom post type fields to be altered within a theme or plugin via custom filters. I have added my own custom fields (example) and the ...
0
votes
0answers
13 views

Adding Information To All Posts Screen

What I'm looking to do is add the value of a post's metafield in each post's row on the all posts screen. I'm attaching a screenshot of where I'd like this information to show up. The info would be ...
0
votes
0answers
11 views

Product images (thumbnail open full size same page)

In my custom post type called "product", I have created a template with a few thumbnail images and one full size. When you click on the thumbnails, they opens up in new or same window. But I want ...
0
votes
0answers
8 views

User only edit CPT with slug that matches username

I'm in a situation that necessitates I complete this project within a week. So any help or specific guidance to my question would greatly appreciated. Is it possible, without creating an incredible ...
0
votes
0answers
18 views

do action inside a class is not working

I am trying to create my custom hook and call it from within a metabox class. Here is the pattern: metabox.php -- <?php require("libs.php"); require("test.php"); class metabox() { function ...
0
votes
1answer
38 views

How can draft post after 1 year

I need to do this in my post in custom post type, I need when to day publish new post. After 1 year from today convert post status from publish to draft. How can do that ?
0
votes
0answers
7 views

“Costumize posts and pages” (price, nembres of rooms..)

Im the admin's (owner) website in the tourisme category, I want to make pages or posts with hotels, restaurant listings (list for hotels), each post in the list width some information (small ...
0
votes
0answers
26 views

Rewrite rules lead to blank page

Using a child theme, with custom post type article, trying to call a file from functions folder inside the child theme main folder (child-theme/functions), using this code in the child theme ...
0
votes
0answers
14 views

Previous and Next comment page link not work

I have a custom post type name recipe. I've already removed slug for post: From: example.com/recipe/cake-post To: example.com/cake-post But I have problems with break comments into page: previous ...
0
votes
1answer
15 views

Secondary loop pagination on custom post type single post gets redirected to first page

I would like to output related posts on a custom post-type single page. Everything seems to be set up correctly. When I hover over my pagination links I see ...
0
votes
0answers
9 views

Show custom page template page name instead of post type archive in yoast SEO breadcrumbs

I have a custom post type named AWP Authors (slug: awp-author) and to display list of author I have a custom page template named AWP Authors Page which is used as custom template for page named ...
0
votes
0answers
17 views

URL rewriting, problem getting arguments

How can I get URL/courses/[course_name] to point to URL/index.php?page_id=127&course_name=[course_name]? The redirection works well but I can't access the course_name argument. In fact, the page ...
0
votes
1answer
35 views

Custom post type AND custom taxonomy are not connected

I have CPT and Taxonomy (code below). When viewing taxonomy term archive page, it's empty. WordPress doesn't know it has include my custom post type to WP_Query. Am I doing something wrong? function ...
0
votes
1answer
20 views

Remove tinyMCE from admin and replace with textarea

I have created a plugin wherein I have a custom post type. I am using post_content for some simple text. I do not need to offer any fancy editing or insertion of data for this field, so I looked for a ...
1
vote
2answers
39 views

Set object terms not working on plugin activation

I am trying to create a couple of custom posts and set a custom taxonomy term to it on plugin activation. I am using the register plugin activation hook to do it. The posts are created properly, but I ...
8
votes
2answers
608 views

What is singular.php?

From 4.3 we have a new template, singular.php. I tried to understand what is it, but I didn't get it. :) The page.php for pages. The single.php for every post types. If we have single-[post-type].php ...
4
votes
3answers
152 views
+50

Display Authors Comments on Profile Page

Hi I am trying to display a authors comments on their profile page (author.php) however both codes I tried, seem to display everyone's comments. Also the second code method is suppose to link to the ...
0
votes
1answer
25 views

Generating and downloading files with WP API

Lately I was challenged to implement functionality that would allow users, editing specific custom post, to download json file based on meta of that post. I finally managed to complete the task (well, ...
1
vote
1answer
29 views

Am I using the flush_rewrite_rules function in the right place?

Hello dears I'm writing an admin panel for my new WordPress plugin base on the WordPress Settings APIs. I am defining a field for changing custom post slug from this admin panel. After the custom ...
0
votes
1answer
17 views

Custom Post Type with Configurable Sidebar via ACF

I am using a custom post type (CPT) trainings on one of my client's sites. I've also added a CPT called sidebars, which can get linked into trainings or pages via the "relation" field type. To get an ...
0
votes
0answers
13 views

Cannot use pages created on WP

I am quite new to WP and I have recently taken over a development project of a page that I really don't understand quite well due to the weird options that the previous developer took. Unfortunately I ...
0
votes
0answers
26 views

Pagination of Custom Query inside a Shortcode on a Custom Post Type Page (singular)

I've done dozens if not hundreds of searches regarding my problem, but didn't find a solution anywhere. I really hope you can provide me a solution, that would be great! Thanks for reading. Heres ...
0
votes
0answers
17 views

Taxonomy name in the URL [duplicate]

So I have a taxonomy of Clients linked to two custom post types (Press releases & Case Studies). What I want is the URL of a Press Release or Case Study post to have the client name (taxonomy ...
0
votes
0answers
6 views

Custom Post Type Url with Custom Fields

I have basically the same issue as in this question: Using Custom Fields in Custom Post Type URL But can't seem to make this working for me. What I have: A custom post type called 'hebergements' ...
0
votes
1answer
31 views

Menu disappears with custom post type link

I’m working with Genesis Theme for a while but never got any problems:) This is my first big issue and I dont know how to solve it. I’m making a new website with Custom Post Types and WP All Import ...
0
votes
0answers
21 views

Next_post_link not working when I try to change text

I am using the following code to navigate through posts within a custom post type. Which is working absolutely fine. <div class="prev-item"> <?php previous_post_link(); ?> ...
-1
votes
0answers
21 views

Country specific stats [closed]

I love the fact I can see how many countries view my blog but I can't get further insights aside from the country and number of visitors. Is there a possibility or another app which would allow me to ...
3
votes
1answer
795 views

Random post, once per day

I have a custom post type 'quotes' and I would like to display a random entry on the homepage each day. This is the code I currently have to display the content: <?php query_posts( ...
0
votes
0answers
17 views

Adding filter menu to admin custom type list to filter by custom field values having issues

I've been working on this for a bit and am having some difficulties because I can't understand for certain what is going wrong and why I'm getting the error that i am. It's hard to tell if it's a WP ...
0
votes
0answers
14 views

Help understanding custom post type and children

We are considering restructuring our Wordpress site, and I'm trying to better understand how to use custom post types and (possibly) child posts to better organize and control content. The site has ...
1
vote
1answer
38 views

Custom taxonomy & post slug permalink

I have a custom taxonomy and a custom post type. I'm aiming for the following permalink structure: {custom taxonomy}/{custom taxonomy term}/{custom post slug} Or, at the very least, {custom ...
0
votes
1answer
27 views

How to delete comma from the end of results? [closed]

I use ACF advanced custom field to add a custom field "authors" to "articles" post type. Authors field is a relationship field which relate Articles post type with Authors post type. I want to display ...
0
votes
0answers
15 views

How to display most visited posts of a certain category of custom post type?

this code display some posts of a certain category (pop) of my custom post type (songs): <ul> <?php query_posts(array( 'post_type' => 'songs','songs_cat' => 'pop' )); ?> ...
0
votes
0answers
9 views

Post Rank on Single Post page based on custom field issue

As per my previous question. Post Rank on Single Post page based on custom field. All working fine but apart from top 100 posts singles posts display Rank #1. It should display Not ranked.
0
votes
2answers
27 views

Showing only one category on portfolio page BUT filtering remaining categories with Isotope

I have built an isotope portfolio Wordpress theme which so far is working perfectly: Anything posted in the custom post type 'portfolio' shows on the homepage and is filterable by the ...
0
votes
1answer
35 views

How to call custom single post?

newbie here playing with php stuff, wanna learn. So the problem is. I have created custom posts and data from those is shown in a widget. Now i want to create custom single posts for those custom ...