Articles of custom post types

Custom post type – change name in sidebar

I’ve created a custom post type, as I’m making a site which will feature job listings. I want the sidebar in the dashboard to show “Jobs” as the name. Here is my code in functions.php // Register Custom Post Type function custom_post_type() { $labels = array( ‘name’ => _x( ‘Jobs’, ‘Post Type General Name’, ‘text_domain’ […]

Display Taxonomy Term Children in a Drop Down without Submit Button

I have a custom Post Type “Portfolio” with Custom Taxonomy “Portfolio Categories” and Terms within that Taxonomy are “Branding”, “Print”, “Web” and “Multimedia”. Each of these have Child Terms. I would like to display a separate drop down for each Term (Branding, Print, Web and Multimedia) that displays its Child Terms in a drop down. […]

can register_post_type() be safely called before init

If I call register_post_type() before the init action, will my plugin explode in a ball of fire under some circumstances? Codex says: register_post_type should only be invoked through the ‘init’ action. It will not work if called before ‘init’, and aspects of the newly created or modified post type will work incorrectly if called later. […]

How to Include Custom Post Content From Plugin

I am currently working on a plugin that creates a custom post type. The post type has various meta fields which are used to display the content. I am struggling trying to determine how to display the meta fields inside the existing theme on the site. I know HOW to display meta fields and that’s […]

2 wordpress site same database

I have twoo websites on worpdress platform: On the server there are 2 different folders with same files, same config but one of them has: define(‘WP_HOME’, ‘’); define(‘WP_SITEURL’, ‘’); so is the same database but different url. I wanna made some changes on one of them, different logo, background so I need a […]

“Allowed memory size” problem

I duplicated a wordpress website. On the new domain, the TYPES plugin causes big problems. I get several “Allowed memory size of … bytes exhausted” error messages. They show up when I try to do the following: clicking on “Pages”: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in […]

Loading plugin text domain before registering post type

I’m building a wordpress plugin, that will register a post type. Im trying to set up a simple test case where all it does is registering a post type with get text functions and translating it with poedit. I have successfully created the .po and .mo files, and loaded them with the following code: add_action(‘init’, […]

Is there a way to make child posts inherit parent post terms?

I have a few custom posts that go from Parent to great grand children. I assign the parent post a term from a custom taxonomy that I would like for all of the child posts to inherit. Is there a way to do this? Or, could I make the child term pass up to the […]

list posts of two post types in a single template

I have two post types. One is post & other one is event. Both sharing same categories & tags. I am listing the posts by archive.php. Now I am listing the posts as general by two different templates like archive.php / archive-event.php. But now I want to list them in a single template with mixing […]

Which is the neatest way to have homepage articles and a blog?

I have a homepage that should display a few different posts from different categories. I use the “Stick this post to the front page” option to this matter and each post permalink looks like Now this site should also feature a blog with articles (these are different than the homepage ones) at /blog with […]