The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
26 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
36 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
13 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
29 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
35 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
72 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
26 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
0answers
29 views

Whats the Mysql Query to Find each display_name stored in wp_postmeta.meta_value, grouped by username?

I created a custom content type that contains some fieds tos store user names (display name), thru a meta.key that is called 'opr'. Now i want a mysql query to find all custom postss date ...
0
votes
1answer
72 views

Get the type of an advanced custom field (ACF) in a WP_Query loop [closed]

When reading posts with WP_Query how would I get the data type of an advanced custom field (textbox, date, number, repeater, …) ? My code: $loop = new WP_Query( $args ); $posts = ...
0
votes
1answer
56 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
0answers
35 views

Media Popup filter results by custom media Category

i'm using the wp.media for Media Uploader Popup http://mikejolley.com/2012/12/using-the-new-wordpress-3-5-media-uploader-in-plugins/ I created a new category called 'media-category' for the Media ...
0
votes
3answers
166 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
65 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 ...
1
vote
2answers
140 views

Why does $wpdb return strings for mysql integer values?

I find it very inconvenient and hard to understand that the default behavior of the Wordpress db-interface is to convert all integer (and float?) types to strings. e.g $wp_posts = ...
0
votes
1answer
30 views

Displaying information from Custom Fields in template with Types?

I am trying to understand Custom Fields and how I can use them on my posts. I have set up a Custom Field for 'author' and associated it with a template. Now, on the PHP side of things I need to ...
0
votes
0answers
48 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
63 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
37 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
63 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
16 views

select particular post type by a particular category

i have couple posttype and couple category , each of this posttype have 4 or 5 category attched to it , now my question is , how to show the posttype(post) of a particular category. this is my frist ...
0
votes
1answer
32 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
56 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
144 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
47 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
354 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
215 views

wp_upload_bits does not retrieve images that do not have an extension

I am using the following code to retrieve images from the web: $get = wp_remote_get($image_file_name); $mirror = wp_upload_bits(basename($image_file_name), '', wp_remote_retrieve_body($get)); This ...
1
vote
1answer
91 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
69 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
80 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
63 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
86 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
69 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 ...
1
vote
0answers
64 views

Need help enqueueing webfonts

I am attempting to enqueue web fonts that I am loading in via the WebINK font library. (This service is similar to Typekit). This service works by generating a unique CSS link for each unique site. I ...
0
votes
1answer
150 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 ...
2
votes
1answer
57 views

Actions according to image type and size

I want to do some actions according to image type and size, but the script I'm using is kind of heavy and is skyrocketing my wait time (first byte) from 5 to even 40 seconds (usually it's bellow a ...
0
votes
1answer
279 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
266 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
364 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
336 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
113 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
2answers
728 views

Remove specific page/post from feed

I'm working on a website with lots of tutorials/pages. I have made a separate rss feed for the pages - works fine. But then I had to create a sitemap (a page), and it shows up in my "pages" rss ...
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
536 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
329 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
316 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
472 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
139 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 ...