New answers tagged

3

Remove: $content = get_the_content(); and replace: <p><?php echo $content; ?></p> with: <?php the_content(); ?> See this note on the Codex page for get_the_content(): An important difference from the_content() is that get_the_content() does not pass the content through the 'the_content' filters. This means that ...


0

Go to woocommerce folder-> template single product -> product-thumbnail.php from that you need to delete the slider class


3

For unattached images, the post_parent column in the wp_posts table, has the value of 0. Your gallery shortcode in that case is: [gallery id="0" columns="4"] which means you are calling get_children() with post_parent as 0. You can e.g. use the gallery shortcode callback gallery_shortcode() directly: if( $parent_id = $post->post_parent ) { echo ...


6

In order for your images to be responsive they require CSS. The CSS will inform the image to stretch 100% of the available space and to automatically adjust the height. img.responsive { width: 100%; height: auto; } Because you don't want to apply this rule to all images, you'll need to add a class on the target image which tells it to use these ...



Top 50 recent answers are included