Can custom fields be added without a meta box?

Add this code in functions.php add_action(‘admin_init’, ‘wpse_87339_admin_init’); function wpse_87339_admin_init() { wp_enqueue_script(‘wpse_87339_admin’, get_stylesheet_directory_uri() . ‘/js/admin.js’, array(‘jquery’)); } and create new js file name admin.js and then add the below code in it jQuery(document).ready(function($) { // Remove all .postbox classes from sidebar $(‘#side-sortables .postbox’).removeClass(‘postbox’); // Remove .postbox from specific metabox (page attributes) $(‘#pageparentdiv’).removeClass(‘postbox’); });

Paginate_links in custom post type template

Can you try this and check whether its working for you or not? <div class=”container”> <?php // set up or arguments for our custom query $paged = ( get_query_var(‘page’) ) ? get_query_var(‘page’) : 1; $objekte_args = array( ‘post_type’ => ‘objekte’, ‘posts_per_page’ => 1, ‘paged’ => $paged ); ?> <?php $objekte = new WP_Query( $objekte_args ); … Read more

WebP Fallback for Inline Background Image in Style Attribute

Here’s couple of wild ideas which you could try, if you’re feeling adventurous. 1) Write some conditional logic with $_SERVER to detect if the user’s browser is the right type and high enough version, that would probably support the WebP format. Try using $_SERVER [‘HTTP_USER_AGENT’] and see also https://stackoverflow.com/questions/13252603/how-does-http-user-agent-work 2) Add the WebP and fallback … Read more

Filter get_cat_id for Custom Post Type

First, you are mixing up terminology a bit. Portfolio is taxonomy, but Work, Images, etc are terms (not categories). So you need to adjust functions for your taxonomy. Try this: Replace: $catid = get_cat_id(‘Images’); Becomes: $catid = get_term_by( ‘name’, ‘Images’, ‘portfolio’ ); $catid = $catid->term_id; And: $categories = get_categories(‘child_of=”.$catid.”&orderby=name’); Becomes: $categories = get_categories(‘child_of=”.$catid.”&orderby=name&taxonomy=portfolio’);