Rename the insert button in media upload window

I think, this is not so easy possible, on the media-page in Admin-area is it not possible to check the post_type of your CPT. Normaly you can change strings with the follow small source, an example. if ( is_admin() ) add_filter( ‘gettext’, array( ‘fb_string_translate’, ‘gettext_filter’ ), 10, 1 ); class fb_string_translate { static function gettext_filter( … Read more

Define permalinks for custom post type by taxonomy in WP 3.4

Solution I have figured it out with the help of these posts by Jan Fabry -> https://wordpress.stackexchange.com/a/5478/10350 https://wordpress.stackexchange.com/a/22490/10350 I have set up the custom post type as follows -> Custom post type (register_post_type) -> “product” Taxonomy (register_taxonomy) -> “product-type” Back-end function I rewrite the permalink structure that is saved in the back-end, so that the … Read more

Limit search form to 4 custom post types only

You have to change the input with 4 inputs like this : <input type=”hidden” name=”post_type[]” value=”videos” /> <input type=”hidden” name=”post_type[]” value=”e-courses” /> <input type=”hidden” name=”post_type[]” value=”e-books” /> <input type=”hidden” name=”post_type[]” value=”white-papers” /> You may get more detail about a complete code in this article