Arrange Category post manually when displayed

So, if I can clearly get you, you want to sort the order of your posts. I found the following plugin best fit for the purpose: Post Type Order – WordPress Plugin After installing the plugin, you will get a new submenu under “Posts” (and under all other Custom Post Types). You can order the … Read more

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)