Viewing 1 to 10 of 10 items
Tag Archives: Custom Post Type

Post type selector for Advanced Custom Fields

As seen on Github: https://github.com/thomasdebruin/acf-post-type-selector Plugin Copy the ‘acf-post-type-selector’ folder into your plugins folder Activate the plugin via the Plugins admin page Include Copy the ‘acf-post-type-selector’ folder into your theme folder (can use sub folders). You can place the folder anywhere inside the ‘wp-content’ directory Edit your functions.php file and add the code below (Make  Full Article…

0

Renaming WordPress Custom Post Types and Taxonomies

Taken from this Stack Exchange Thread: http://wordpress.stackexchange.com/questions/1037/renaming-custom-post-types-and-taxonomies SQL query for renaming the posts: SQL query for renaming taxonomy: That should take care of all of the database areas. Just remember to match the new names in the code where the post types or taxonomies are registered. As far as I know, this is not handled in  Full Article…

0

Can’t access Custom Post Type posts after update

I also had the same situation (multiple custom post types). To fix this, I modified it like so: You could make that option whatever you wanted, that just seemed to me the quickest way to change it for the second type. Thanks to those of you who made finding this solution relatively painless. Here is  Full Article…

0

Check If a Post has a Term from a specific Custom Taxonomy

See this page for the original source: http://alex.leonard.ie/2011/06/30/wordpress-check-if-post-is-in-custom-taxonomy/ As of WP 3.2 – there’s no core conditional function for checking whether a post belongs to a taxonomy term. A bit of searching around found this WordPress Support forum post by Justin Tadlock explaining how do check against a specific taxonomy. I’ve expanded this function a little bit  Full Article…

0

Custom Post Type Archives & URLs

Templates and Heirarchy http://codex.wordpress.org/Template_Hierarchy Default WP archives for Custom Post Types Here’s one little gem for accessing default genearted archives if you are using WordPress 3.1 or higher: This should query for “all custom posts about the theme named taco”. Plugin: Custom Post Type Archives Enables pretty permalink custom post type archives that will support  Full Article…

0

List custom post types in dropdown

Firstly declare the variable: (customcategory) Secondly the array for adding the post: and finally create the dropdrown from the get_post_types function: Taken from WordPress Stack Exchange.

0

Custom post types not showing up in queries and search results

If you can’t get Custom Post Types showing up in a query you should make sure that if you aren’t specifying a post that that you specify any –  post_type=any It’s also a good idea to do a query reset because there are many factors that can affect your queries.

0

Pagination with custom post type listing

After a looong day debugging thru wordpress core, I managed to solve this issue. Basicly, you CANT have a PAGE and a CUSTOM POST TYPE with the same name. If you do, the permalink rewrite rules will get confused and trigger a 404. A very simple solution I’m using is: The page that lists the  Full Article…

0