Tag Info

New answers tagged

0

You could try this: class List_Category_Images extends Walker_Category { function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) { $saved_data = get_tax_meta( $category->term_id, 'image_field_id', true ); $cat_name = apply_filters( 'list_cats', esc_attr( $category->name ), ...


0

I suggest going with a slider plugin like Layer Slider or this http://www.wonderplugin.com/wordpress-slider/ . You're right that a plugin search for this kind of topic has the potential to be endless, so look for customizability and extendability in the plugin. Similarly for going the DIY route. There's no need to reinvent the wheel. Find a strong jQuery ...


-2

You are probably missing ImageMagick (PHP extension). Install it and the JPG artifacts will be gone.


1

You are using the size parameter of wp_get_attachment_image_src in a wrong format. This parameter can be: A string: keyword of the image size; thumbnail, medium, large, full or any other custom size previously registered). A 2-items array representing the width and height; for example, array( 100, 100 ). So, you have to change this: $thumb = ...


1

Have a look at wp_get_attachment_image_src <?php $attachment_id = 8; // attachment ID $image_attributes = wp_get_attachment_image_src( $attachment_id, 'medium' ); // returns an array if( $image_attributes ) { ?> <img src="<?php echo $image_attributes[0]; ?>" width="<?php echo $image_attributes[1]; ?>" height="<?php echo ...


0

After trying to ask help from others, I got my solution and here I am sharing that below. First there is no use of 'in_same_cat' => false, in upper code and second get_next_post(true);, get_previous_post(true); is used to show next/prev post from current post categories but if you want to show all posts in next/prev then you have to use only ...



Top 50 recent answers are included