0
votes
1answer
94 views

Custom taxonomy archive page problem

My website is built on custom post types, that I have organized with different custom taxonomies. The menu buttons are the taxonomies archive pages (red, blue, green), so that when you click on the ...
0
votes
1answer
45 views

Style Wordpress Custom Post Type Single Page

I'm registering a custom post type 'events'. The events can be listed using a shortcode, and when you click on an event you go to the single view of that event. Now, I want this single view page to be ...
0
votes
2answers
42 views

How to make a template for a specific post of a custom post type?

For the Page post type: I can create a logout page in the CMS and create a page-logout.php for its template. I created an Account post type but I can't use account-user-registration.php for a User ...
0
votes
1answer
14 views

Get new post meta data when (custom) post is saved

When I save my post (custom post type: project) I want to get the meta data for a specific key that I just inserted. Based on the value of that key I insert a product in WooCommerce. What happens is ...
0
votes
0answers
40 views

Checking if some condition is matched before inserting post into database

Is there a way to check if some requirements are matched before adding new instance of custom post type to database? Like custom policies for adding new posts etc? What I want to do is to build two ...
0
votes
1answer
50 views

Custom posts in different columns style

I'm trying to output a custom type posts with a sticky/featured work in a col-8 (thumbnail) and col-4 (content) then the rests of the posts should be in col-4. So far I have tried the code below but ...
0
votes
1answer
73 views

Optimize CPT-function with a loop

I want to optimize my functions of a Custom Post Type (CPT). Now I have 10 meta boxes. For each box I have an extra function. The aim is to produce the 10 boxes in one function. I already tried the ...
0
votes
1answer
37 views

How to include a post type in the admin/backend?

I'm changing the backend/admin and want to show a div above the pages. How can I include the pages like the example; <?php include('./tools.php') ; this works but when I choose edit.php / ...
0
votes
1answer
70 views

“Current” class on a singular page menu item with custom post types?

I'm struggling to get a "current" class for the corresponding menu item when I'm on a singular (child) page of a custom post type. These are the arguments I used when registering the post type with ...
0
votes
3answers
266 views

Add category selection to custom post type (plugin)

I picked up someone's old project at the company I work at. They created a plugin to add courses to the website (including dates, location etc), but they didn't add the possibility to select a ...
0
votes
0answers
69 views

Custom post type archive with taxonomy

Hmm OK, I'll try to be as clear as possible. I have a CPT named "custom_type" with the args (one of many) rewrite('slug' => 'space') and has_archive => 'spaces'. My first question. When calling ...
0
votes
0answers
51 views

query custom post type by date

I created a custom post type envent. I d like to filter out post in the futere. I did use the advanced custom fields plugin to make a date picker. I used following code, but somehow id does not filter ...
0
votes
1answer
65 views

Given two custom post types: Automatically add meta fields from one custom post type to another

Custom post type "Company" has: Restaurant name field Restaurant description field ..and other more fields Custom post type "Restaurant" has: Restaurant name field Restaurant description field ...
0
votes
1answer
42 views

Add post tags to previously created custom post type

I am trying to add post tags to the custom post types bbpress creates, so that I can do some "related topics" kind of stuff. Is there a function that adds a post support like 'taxonomies' => ...
0
votes
1answer
65 views

Display metabox with date

I'm trying to add metabox with date in WordPress. I used code from this page It works well, but I have a problem displaying the metabox values on page. My loop: <?php ...
0
votes
0answers
30 views

Select particular post type by a particular category

I have a couple post types and a couple categories. Each of the post types have 4 or 5 categories attached to it. My question is how to show the post type (post) of a particular category? This is my ...
0
votes
1answer
34 views

relating business and products with custom taxonomy?

This isn't a code question so much as a how would you do that kind of question. What I can't figure out is how to relate businesses to the the products that they sell. If I've got a custom post ...
0
votes
0answers
64 views

Custom Post Type Order Issue

I am having an issue getting my Custom Post Type "slide" to pick up the custom order set in the order attribute. In fact I can't seem to get the order to change from ASC to DESC period. I have ...
0
votes
1answer
162 views

Display custom post types by date field

I have a custom post type that is simply titles with a date field. I want to display these posts in a list in order of this date field (not date posted). So simply: -- Sample date Event title 1 ...
0
votes
1answer
49 views

Get a term each custom post type

I have a problem to get the term of custom posts list. I have 2 taxonomies on my custom post type. one of them is "visa_processing". and I am trying to create a list (table, tr, td) "Name1, Name2, ...
0
votes
1answer
447 views

Archive Page for Custom Post Type is not Working

I have registered a custom post type "tutorials" with the following snippet. <?php /* Template Name: Tutorial Archive */ get_header(); ?> <div id="content"> <div ...
1
vote
1answer
95 views

custom post template file not shown, instead all the time 404.php

i'm completely confused, want to use my own template file for a custom post type and of course i read all about this here or in the Codex ...
0
votes
1answer
73 views

Custom Post Type, post-formats associated to custom post type > 404 archives

I'm finishing a custom layout. Here's the code of my Custom Post Type <?php /* ------------------ [ CUSTOM POST TYPE ] ------------------------- */ add_action( 'init', 'create_post_type' ); ...
0
votes
2answers
2k views

Attach pdf file to custom post type

I am trying to attach a pdf file to a custom post type. I have found this snippet at wpsnipp.com. The code does the trick, but only for posts. I have a custom post type named 'events' and I can't ...
0
votes
0answers
82 views

custom search in theme doesnt work

the theme back end says Enable live search in posts and pages (post search is enabled by default). check boxes are Pages, knowledgebase, Articles, Faq, but they don't do anything. i think ...
0
votes
0answers
68 views

Add Custom Post Type Categories to General Categories

I've created three custom post types. I want them seen as general categories. I could not find a solution, can anybody help me? Thank you.
0
votes
0answers
46 views

How can i retrive the movies, trailers, news in a single page using search

How can i retrive that. For a few month i build a website, and i want to make it diferent For the search i have 3 post type, and i have for each diferent themes for display - Movies - Trailers - ...
0
votes
1answer
88 views

Two Custom Post Types with Identical Articles Competing for the same Slug

I have created two custom post types, each with it's own slug. Each custom post type contains some articles with the same title. So ideally I would have . . customposttype1/mainarticle/ ...
0
votes
1answer
72 views

Help with listing current users submitted custom post type in template file

I have the following code to list the member's post that they created. However it is listing all posts. Anyone know how to fix it? Thank you! <?php if ( is_user_logged_in() ) { global ...
0
votes
1answer
173 views

Custom Post Type archive

Hey all first off im a WP newbie so go easy! Ive been searching for a couple of days now to see if I can find the answer to this but cant get anything definitive. I have a custom post type called ...
0
votes
1answer
297 views

Custom Post Title as search term

is there any way to include custom post title as search term. I create custom post types - VHS, DVD, Blu Ray. Then in search box when I write DVD I want to list all posts from custom post type DVD. ...
2
votes
1answer
285 views

Use plugin or custom post type for game score functionality

The last couple of days I've been working on a plug-in that adds the functionality of keeping scores from a paintball game. When I manage to finish it I want to present players with a form so they can ...
7
votes
1answer
387 views

Custom Post Types, slug, archive and SEO plugins

I made a custom post type called "friends". I am able to correctly list my friends using this urls: http://mysite/friends/friend1/ http://mysite/friends/friend2/ http://mysite/friends/friend3/ ...
1
vote
0answers
346 views

show custom post type category dropdown sorting result on same page

I made a custom post type "kaubad" and i also want to add sorting option on website front end - users can select between this custom post type categories. here is screenshot about what i want to do. ...
0
votes
1answer
2k views

Custom Post Type Pagination 404 Error (if paged>=2) [duplicate]

I coded a WordPress theme. I added a Photo Gallery with custom post type. But if paged>=2, it gives 404 error. If you open my web site link and click Tümünü Göster (Show All) button, you can test ...
2
votes
1answer
115 views

Remove custom posts that match taxonomy value

I have a custom post type 'listings' and within that a taxonomy called 'status' where the posts are either 'standard' or 'premium'. What SQL query (or other method), could I use to delete all custom ...
1
vote
1answer
1k views

Custom Post Type Pagination Doesn't Work in Wordpress 3.4

I have a problem when using Wordpress 3.4. My "Products" custom post type pagination doesn't work. Here is the code I use $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $loop = new ...
0
votes
1answer
580 views

Unattaching images from a post

I currently have a custom post type in a theme I'm developing which will be used for portfolio items. So far, I have implemented functionality that allows images to be attached to a portfolio post. I ...
0
votes
1answer
337 views

Custom Post Type Rewrite To Include Parent Page(s)

I have a page title "more" with subpage "cities-guide". Said "cities guide" page has a loop that pulls in posts from custom post type "thailife_city_guide". My permalink structure is ...
0
votes
1answer
323 views

Custom post type slideshow background images to insert in a plugin

I have a slideshow which is populated with background images from a custom post type. Here's my code: <?php // start the loop foreach($slider_posts as $post) : setup_postdata($post); // get ...
6
votes
1answer
497 views

Search Custom Post Type Pages and Custom Fields in 2 Dropdowns?

On my custom post type pages I have custom fields that the user can edit. What I want is to have a search form with 2 select dropdowns: one dropdown that is populated with all the top-level custom ...
0
votes
2answers
140 views

How To Use Custom Tax of a Post Type

I've defined a custom post type. I've defined a custom taxonomy for this custom post type. I've populated the custom taxonomy. How do I make the list of custom taxonomy values show up in the admin ...
0
votes
1answer
165 views

How to output all taxonomy links from a custom post type in a menu?

I made a custom post type called Product. And a taxonomy with the name 'product-category'. These taxonomies have pages where we show a list of the products that have that taxonomy. Now my question is ...
1
vote
1answer
2k views

How to display comments and comment form on custom post type?

Is it possible in wordpress to display comments and comment form on custom post type, and how to do that? Thanks in advance.
0
votes
3answers
132 views

First Custom Post Custom Fields Empty After New Custom Post

I am working on a theme which contains a custom post type with custom fields. Everything is working perfectly except the when a new custom post is added, the custom fields for the first custom post ...
0
votes
1answer
100 views

Best way to enable sorting by 3 criteria on a page of listings

If you go to this site: http://www.ec-ohio.com and click on one of the links in the Directory (left column of homepage) you generate a page with listings, and at the top of each page there's 3 links ...
1
vote
1answer
362 views

Dynamic carousel on individual posts

I'm using Wordpress as a CMS for a small business website (not my first choice.) Each product page needs to have a small carousel of images that contains images relevant to the product. I've set up ...
3
votes
2answers
1k views

How to force one column layout on custom post type edit page?

I've created a plugin using custom post types and I need to force the default two column post page to a single column. At the same time, the Publish metabox must move to the bottom. I need to do this ...
2
votes
1answer
2k views

.current-menu-item class on custom post type children pages - again?

There is the situation. I have created the custom post type - products withfuncionality like pages - I have to create hierarchy. f.e: Chairs: Oak Chair Nice Chair The weird thing happens with ...
0
votes
2answers
990 views

WordPress 3.2 - Problem with WYSIWYG editors in a custom post type?

I'm using this class http://www.deluxeblogtips.com/p/meta-box-script-for-wordpress.html to create custom meta-box in which it contains some WYSIWYG editors. It works fine until I upgraded my WP to ...