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

learn more… | top users | synonyms (1)

0
votes
2answers
20 views

Custom Post Type Permalinks with %category%

I Create New Post Types and Taxonomies. This is the script: add_action('init', 'my_custom_post_type_init'); function my_custom_post_type_init() { $labels = array( 'name' => _x('Roundabouts', ...
0
votes
0answers
12 views

Maintain custom post types and taxonomies in all themes [duplicate]

When I change the theme in dashboard, activated plugins that use custom post types, stay in the menu. But my own custom post types that I created myself disappear. Logically, It is because I create ...
0
votes
0answers
23 views

add file upload to post type

Short question but how can I include a pdf file attachment upload inside a custom post type? currently creating a new custom post type and I can't see a supports for media upload without the editor... ...
0
votes
1answer
22 views

Display CPT index page as front/home page

I'm building a website that's sole purpose is to display other websites (defined in the CPT). Think of it as a portfolio site for a company's digital assets. I have already defined the CPT and added ...
0
votes
1answer
21 views

Control content before and after custom post type loop

I am trying to create a left nav menu that contains a couple of different taxonomy lists of a custom post type. For example, the left menu might look like this... <h2>New Stuff</h2> ...
0
votes
1answer
12 views

Search that will look in custom field, post title and post content

I am looking for a way to perform a search, and while performing the search, it checks a custom field named keywords, the post title and the post content. If any of those fields have results like what ...
0
votes
1answer
14 views

Problem On Retrieving Post Meta Data on Custom Column [closed]

I am trying to add Custom post Metadata to a Custom Column. The meta-box has two text fields as Price and Company but When I publish a new post it just shows values from company in Price column and ...
1
vote
1answer
21 views

Should i delete the posts created by a plugin on uninstall?

I created a plugin which is based on a Custom Post Type. When someone uninstalls this plugin, should i delete the posts under this post type or i should just leave them untouched?
0
votes
0answers
11 views

Problem retrieving informations and displaying desired structure with custom post type and taxonomy

I have to create a website with a part concerning houses, grouped by type. I thought of using custom post type "house" and custom taxonomy "house_type". function custom_post_house() { $labels = ...
0
votes
1answer
15 views

Show custom post along with default post

I've created a custom post type named "image". Now my theme shows posts on homepage in three parameters- Fresh, Featured, Random(i'm feeling lucky). How can i add custom posts in there. here is the ...
0
votes
2answers
50 views

Display next 3 posts based on custom taxonomy

I am wondering if anyone could help me accomplish something like this: https://medium.com/thoughts-and-words/5ccef7b3e1fc with custom post types? I have a custom post type called projects and ...
0
votes
1answer
17 views

filter search result with custom post type meta key

The default search returns all post types, which is what I want. But for one specific custom post type I want to limit the result to a specific meta key value (a custom date that must be greater than ...
0
votes
1answer
30 views

Post type archive page not working

I registered a custom post type using Custom Post Type UI, and created an archive page and named it archive-recipe.php, 'recipe' is my custom post type name. But its not working, instead its using the ...
0
votes
0answers
11 views

restrict_manage_post to remove filters

Using restrict_manage_post, is it possible to remove default WP-List-Table filters? Example that I tried, but failed below: add_action( 'restrict_manage_post', 'remove_cpt_filters', 99); function ...
0
votes
0answers
16 views

Curious, possible to make admin create/edit post page to look like taxonomy page?

This idea just came to me, where I thought it would be great to have something like this for CPTs that doesn't need much content/fields to fill out. Basically a Post page where your able to add a ...
0
votes
0answers
18 views

Custom permalinks structure and custom post types

For all posts, regardless of of the post type I want the URL to be, /read/%post_id%/%postname% and have the custom post types be archives so you can go to /%post_type% and /%post_type%/%category%. ...
0
votes
0answers
11 views

Creating a new post every time an image is uploaded

I'm making this question because the one I found by searching seems not to work. I have a custom post type project on my theme. When I upload an image via the media library in the wordpress backend I ...
0
votes
1answer
15 views

Navigation menus not showing because of custom post type filter

I use this filter to show content from all custom post types in tags archive page function tagFilter($query) { $post_type = $_GET['type']; if (is_tag()){ if (!$post_type) { ...
0
votes
1answer
36 views

Rewrite custom post type url's adding meta box values

I've got these custom post types (CPT) and meta boxes: Movies (CPT) Genre (Meta box) Genres (CPT) If one movie is called Die hard then I want the permalink to be: /genres/action/die-hard This ...
1
vote
1answer
49 views

Plugin fatal error

I'm trying to activate a plugin I made on a network site. I'm getting an error: Plugin could not be activated because it triggered a fatal error. I have the debug mode on and it outputs all errors ...
-1
votes
0answers
30 views

Custom permalink to custom taxonomy post

my question is simple. normally post permalinks are [the_permalink, or any page link]. here i have to set different permalinks as their post category. example: post categories[food,drinks,books] here ...
1
vote
1answer
47 views

Adding paged query to custom URL rewrite

I have set up the following to create 'pretty' post type and category permalinks: function kdev_add_category_rules() { $post_types = array( 'kdev_photos', 'kdev_videos', ...
0
votes
0answers
9 views

List custom post type as children of page in wp_list_pages

I've got a WP site, with a custom post type set for team members (called 'people'). In the site page hierarchy, I have: About -> Team Is there a way so that all entries for the team members, are ...
0
votes
0answers
5 views

Need Metabox show the values [duplicate]

I can show the metabox of my code but no works for save and get values into the field i save until <?php function reaction_buttons_meta2() { global $post; echo $_POST['reaction_buttons_off2']; ...
0
votes
1answer
23 views

Looping taxonomy in taxonomy?

So I have a CPT of references (like a dictionary kind of format for music). In it there are two taxonomies: medium_reference and reference_letter. The reference_letter lists letters A-Z, while ...
0
votes
1answer
30 views

How to get my Custom Post Type to display in Recent Posts using “pre_get_posts”

I created a Custom Post Type (call it "my-post-type"). I created an archive-my-post-type.php page for displaying all the Custom Post Types. Looking at the "Recent Posts" section of the Sidebar, I ...
0
votes
1answer
24 views

Take stored email addresses from custom post type & turn into one string

I have a custom post type, which has email and names stored. I would like to take these email addresses and concatenate (join them) together into a single string. This string will be stored in a ...
3
votes
2answers
53 views

Creating a Custom Post Type as a Plugin? Why?

I've been experimenting with creating a Custom Post Type as a plugin (because I've seen this recommended in various places). But I have a question not about the how, but rather the why of building ...
0
votes
1answer
26 views

Template with Custom Post Type (Custom Tables) does not work

I'm using a Custom Post Type (CPT) my-project stored in a custom table MY_PROJECT. Here is the CPT registering code: $labels = array( 'name' => __( 'Projects ' ), ...
0
votes
1answer
25 views

Trying to add script to specific admin page is not working

What I am trying to achieve is to load a .js file on an edit.php page, however the code is not working specifically for this page. I've applied the same code type of code to other CPT pages, but for ...
-1
votes
0answers
42 views

advanced wordpress search with drop down menus

I am trying to build a search page on a wordpress site that I am building which will basically filter a search in custom posts types using 2 parameters. in my case: I have a custom post type called: ...
0
votes
1answer
29 views

Custom Post Types (Changing post style based on category)

thanks for your attention. I have a custom post type I've built called "Portfolio Items". These posts layout a nice 6 column grid and are contained within 4 different categories. I've created 4 ...
0
votes
1answer
23 views

Pagination problem in custom post type used as front page

I am working on a theme with custom post type. the issue currently is that i am saving the layout files in a folder called templates.. and in front-page.php i am using an options check to see which ...
0
votes
1answer
44 views

post in a lightbox?

Ive installed "lightbox plus colorbox" plugin and im trying to call the latest post from the CPT notices. the notices have post expiration so essentially im looking to display the latest alert on the ...
0
votes
1answer
31 views

List the categories under custom taxonomy

I have a problem here, I registered a custom post type and I named it 'recipe' then I created a custom taxonomy under the post type, I named it 'recipe category'. Now I want to display the of ...
1
vote
0answers
15 views

Admin Area Custom Type Search By Meta Fields Without Title & Content

I have a custom post type that uses several meta fields. In the admin area I would like to be able to search by those meta fields. I have implemented this currently in my functions.php with this code: ...
0
votes
1answer
45 views

Custom post type archive and single.php files not working

Hi I've created a custom post type called shows. here is the code for it. <?php add_action('init', 'show_register'); function show_register() { //arguments to create the post type. ...
0
votes
4answers
22 views

Shortcode is displaying the wrong post_title

I have got a shortcode that displays a custom post type, via a foreach. The shortcode has been used in the standard post type. I have used the_title(); in the shortcode. the_title(); outputs the ...
-6
votes
0answers
37 views

How do I add features to the Meme Plugin? [closed]

I have installed the Meme Plugin on my WordPress web site. At the end of the meme creation process there is a Create & Share option allowing users to share access to their Facebook accounts. How ...
1
vote
2answers
49 views

wp_insert_post sometimes fails after API call

I have built a plugin that fires an Ajax call to connect to a third-party API. That API returns some Json, which I then save as a custom post with wp_insert_post. Now, usually, this works. But, now ...
0
votes
1answer
45 views

WP_Query of a custom post type isn't working

I am trying to WP_Query a custom post type. I would like to display the post_title s in a list. Here is my code, it doesn't seem to work: <?php add_action( 'init', 'custom_faq_type_mp' ); function ...
1
vote
1answer
35 views

Is it possible to create Custom Post plug-in?

I understand that Wordpress allows you to create Custom Post Types with Custom Fields, but is it possible to create a custom Plug-In that creates and maintains its own Custom Post type (outside of ...
0
votes
0answers
23 views

Archive Page Pagination not working

I am using the following template for a custom post type. The pagination does not work as you can see at http://www.xava.ie/testimonials Any hints as to why it is not working for me? <?php ...
0
votes
1answer
15 views

Creating Multiple Admin Widget Page with Calling One Sidebar

Does anyone know how to create multiple admin widget pages with calling specific sidebars? In Detail, I have a custom post type called Groups and I am creating new admin pages in the back end. I ...
1
vote
2answers
22 views

Display random posts, but omit the post it is on?

I am trying to have a section under a single post where it displays completely random posts. I got everything working, but every once in a while one of the random posts that get displayed is the ...
0
votes
1answer
45 views

Enable comments for post when comments meta box removed

I've hit the issue described in '11: "Enable comments for post with comments meta box removed" and I'd like to ask for your help to adapt the mentioned there code to the current wordpress version. I ...
-1
votes
0answers
19 views

Custom page + query separate block before normal post on static page

I have a static front page on which I would like to have one area where i have just two columns with specific posts which is going ok for now. I have made a template with the code but the problem is ...
-1
votes
0answers
21 views

Custom post type same as default post type (single.php)

I've created a custom post type via functions.php &register_post_type. But it is not working same as default post type. I need theme extra arguments in my custom post type same as single.php. ...
0
votes
1answer
17 views

How to prevent a custom post type from using the archive.php template?

I have the following: //Jobs register_post_type( 'jobs', array( 'labels' => array( 'name' => __( 'Jobs' ), 'singular_name' => __( 'Job' ) ), ...
0
votes
1answer
24 views

How to add a post counter to the list of custom taxonomy terms?

I am using the below code to display the list (radio buttons) of terms that are currently used by existing custom post type posts: $args = array( 'taxonomy' => 'typ', 'post_type' => ...

1 2 3 4 5 59