Custom metabox translation

take a look at Internationalizing Your Plugin codex entry to get a better understanding of WordPress Translations. and read I18n for WordPress Developers after that you will know that if you coded your custom post types and metaboxes the right way with Translatable strings , all plugins work in the same way of looking for … Read more

Include different loop templates in search query

I would recommend using content-{posttype}.php method, where you only have HTML markup, template tags for posts or custom post types and leave loops outside of those files. See Twenty Eleven for more detailed example. After this change you can easily modify search.php and include specific content markup based on post type. if ( have_posts() ) … Read more

Writing Custom Rewrite Rules that Incorporate Category for Custom Post Types?

You could use my plugin: http://wordpress.org/extend/plugins/custom-post-permalinks/ That will only work if it’s a non-hierarchical post type. If it’s hierarchical, you’re going to have to register the permastruct yourself. This is a huge ordeal which I don’t have the time to write out at the moment. You can look at the code in my plugin above … Read more

Child and grandchild taxonomy listings – 404

Solved by adding a filter and building the permalink. FIrt forget the pastebin code, just create a post type a nd the taxos you want, them add the filter: add_filter(‘post_link’, ‘territorio_permalink’, 10, 3); add_filter(‘post_type_link’, ‘territorio_permalink’, 10, 3); function territorio_permalink($permalink, $post_id, $leavename) { if (strpos($permalink, ‘%territorio%’) === FALSE) return $permalink; // Get post $post = get_post($post_id); … Read more