Trying to customize wordpress drop down categories
Trying to customize wordpress drop down categories
Trying to customize wordpress drop down categories
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
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
Better way is put: wp_nav_menu( array(‘menu’ => ‘Top menu’,’menu_class’ => ‘top_menu’)); And then force your html classes to wordpress, or simply 5 min rewrite css rules, classies names for wordpress. WordPress uses ul li ul li ul li, and so on structure, and there is no problem to fix it.
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
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
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 .’
Why the slideshow is not shown in my theme?
Major cache but only on WordPress site
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