Avoiding stripping of HTML in Custom Taxonomy Meta Field

you can use esc_attr function save_taxonomy_custom_meta_bandcamp_embed_music( $term_id ) { if ( isset( $_POST[‘term_meta’] ) ) { $t_id = $term_id; $term_meta = get_option( “taxonomy_$t_id” ); $cat_keys = array_keys( $_POST[‘term_meta’] ); foreach ( $cat_keys as $key ) { if ( isset ( $_POST[‘term_meta’][$key] ) ) { $term_meta[$key] = esc_attr( $_POST[‘term_meta’][$key] ); // encoded text with HTML entities … Read more

hatom-feed entry-title error in the rich snippets tool

Look at your page source and see if your html markup actually contains the entry-title class, i.e.: <h1 class=”entry-title”>My Page Title</h1> as it must for the span and other classes for date and author. If it does, clear your cache and try Google’s testing tool again. If your page source does not contain the correct … Read more

Display ajax preloader for large images within posts

How you said one option is to place a preloader while the image is loading. If you cannot touch so deep with JavaScript and PHP I have one simple sugestion which I think will work for you. <div class=”image-preloader”> <img src=”https://wordpress.stackexchange.com/questions/129186/yourimage.jpg” alt=”” /> </div> Create a wrapper (holder) around your image. With CSS put the … Read more

featured post as div background

You’re code is not working as you have an echo within an echo, try this code (not tested) <?php echo ‘<div id = “circ” style=”background: url(‘.$src[0].’><ul><li><a href = “‘.the_permalink().'</a></li></ul></div>’; ?> If you’re echo’ing something and then you want to add php within that echo you need to break the echo by adding ‘. $variable .’

nested divs, classes for a grid in loop [duplicate]

You don’t have to run through The Loop in one go. $args = array( ‘posts_per_page’ => 3, ‘category__in’ => array( 4, 5, ), ); $querytest = new WP_Query($args); if ($querytest->have_posts()) { // this is the first post, with its markup $querytest->the_post(); ?> <div class=”width-1-2″> <?php get_template_part(‘content’, ‘front’, get_post_format()); </div> <div class=”width-1-2″> <div class=”row”> <?php // … Read more

How Can I Center the Logo in the Navigation Menu? [closed]

As this is a premium theme, I would recommend going back to the original developer for a improvement request. You might find they are already implementing this or might be interested in your feedback and initiate the changes. http://themeforest.net/item/medicenter-responsive-medical-health-template/4000598

WordPress – Image href for home menu nav not working

The class used for your navigation menu’s anchor tag has a css selector :hover. Because the image logo has been added withing the anchor tag, it is considered a part of the link and the hover styling affects it as if it were any other link in your nav menu. Solutions Find another way to … Read more