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

learn more… | top users | synonyms (1)

0
votes
0answers
13 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
9 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
7 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
7 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
17 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
35 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
25 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
6 views

Why is this custom taxonomy page showing all tags rather than the relevant tag?

I have a custom taxonomy 'keywords' which I am using to tag my custom content type 'publications'. I have a custom taxonomy-keywords.php page, and a loop of Publications using page-publications.php. A ...
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
12 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
6 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
16 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
33 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
18 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
37 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 ...
7
votes
2answers
535 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 ...
0
votes
1answer
69 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
22 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
27 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
14 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
25 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
30 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
20 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
20 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
788 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
14 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
36 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
14 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
25 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
33 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 ...
0
votes
0answers
9 views

Allow subscribers to view pending

I am looking for a filter or action that can allow subscribers to view single pending posts. Is there any such filter available?
0
votes
1answer
21 views

How to get xml file for a single post type?

Having a custom post type "Articles" with custom taxonomies "volume, issue, authors, Keywords ... etc". I need to add a button on the single post type front-end to let visitors download an xml file of ...
0
votes
1answer
27 views

display custom post type in widget aera

I am using https://wordpress.org/plugins/custom-post-type-ui/ plugin for custom post types. Now I need to display contact information in my footer area, email, phone num , address etc. For this I have ...
0
votes
1answer
21 views

How to use TOC with ACF?

I'm using ACF advanced custom fields plugin to create custom fields for my CPT where i replaced the content editor of my CPTs with a custom Wysiwyg Editor field (field name: full_text) from ACF in ...
0
votes
1answer
13 views

get children from current variable (taxonomy) via shortcode

I am working on a portfolio site and I need to modify this part. It is a filter of categories, placed via a shortcode. I want to show only the children categories of the selected category of my ...
0
votes
0answers
20 views

Structuring 3K pages in Wordpress

I am about to convert an old site that have approx. 3000 pages to WordPress for a museum. Rather minimalistic layout: navigation to the left, a main column and a sidebar. Since almost all material is ...
-1
votes
2answers
23 views

How to query posts by category with the_title();

Im have a little issue querying a custom post type by category using the_title(); The reason why im doing it like this is because the title is the same as the category name. $args = ...
1
vote
1answer
8 views

Default post tab showing twice in admin bar

I have to re-register WordPress default post type to change the post slug to "blog", changing permalink structure was not worked for me as it rewrite custom post types slugs also. So I used below code ...
0
votes
1answer
19 views

List Taxonomy Terms based on another Taxonomy

I have a custom post type called Resources. Resources post type has two different taxonomies associated with it, Resource Types and Resource Tags. Resource Types sets the format/type of the resource ...
1
vote
0answers
21 views

Custom Post Types hierarchy and rewrite

I've been around this problem for 2 days, googling and experimenting with no avail. I have this Custom Post Type name "programas", and a page with the same name. The page "Programas" lists all the ...
0
votes
0answers
23 views

WP All Export + Realhomes Theme -> Full Image Path

Second challenge for today :P I'm using WP All Export + REALHOMES Theme for Wordpress in localhost. I'm facing some issues: When adding pictures to a property (post), in this theme you need to use ...
0
votes
1answer
32 views

Show Templates in Custom Post Type Editor

I know I can use templates for my custom post types like this: http://codex.wordpress.org/Post_Types#Template_Files But I would like to have a dropdown menu to choose a template, like that when you ...
2
votes
1answer
26 views

Disable Single Post View for Specific Taxonomy on Custom Post Type

we have a somewhat unique problem with a specific Custom Post Type that was developed for a client. It basically boils down to a need to disable the single post view for any posts that have been ...