Limit Authors to their Own Posts on front-end excluding admins
Limit Authors to their Own Posts on front-end excluding admins
Limit Authors to their Own Posts on front-end excluding admins
Featured image metabox not showing up
I think it might be possible, try adding this to your child theme’s functions.php add_action(‘init’, ‘remove_plugin_image_sizes’); function remove_plugin_image_sizes() { remove_image_size(‘image-name’); } Here is the documentation: https://codex.wordpress.org/Function_Reference/remove_image_size
Try this, it’s the most basic implementation. It could be more effecient to hook into pre_get_posts, and change the query from a ‘top level page’ to a query for it’s children. But that has the potential to break a few things, and in particular would probably require you to alter the template used. <?php if … Read more
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
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
get_terms() return all the terms in the taxonomy regardless of the current post. So if current post does not have lang terms still this condition if ( !empty( $lang)) will be true thus it will display the text Language. Use get_the_term_list instead of the_terms which return the terms list instead of printing, so output can … Read more
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
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
Since WordPress version 4.7 Post-Type-Templates are enabled in the WordPress core. You dont need to specify the templates in the register_post_type function. Instead, just create your post-templates like you would do with your normal page-templates. So for example, duplicate the single.php file, rename it and add the following code to the top of the file: … Read more