Thomson Muriyadan
Forum Replies Created
-
Forum: Hacks
In reply to: Display Groups of Custom Posts by their Custom Taxonomy TermWorks like a charm! Thanks a ton!
Forum: Plugins
In reply to: [Simple Responsive Slider] How I can put it in the themeFor some strange reason it is invisible.
Anyway the function is:
<?php if ( function_exists( ‘show_simpleresponsiveslider’ ) ) show_simpleresponsiveslider(); ?>I found it on the plugin website-
https://www.marcelotorresweb.com/simple-responsive-slider/Forum: Plugins
In reply to: [WordPress Share Buttons Plugin – AddThis] Template tag problemSimple fix:
within the loop:
<?php
$url= get_permalink();
$the_title = get_the_title();do_action( ‘addthis_widget’, $url, $the_title, ‘below’ );
?>
Forum: Fixing WordPress
In reply to: get_post_meta not working properly for img tagThis solves the problem.
Forum: Fixing WordPress
In reply to: get_post_meta not working properly for img tagThat works perfectly.
Thank you, alchymyth. ??
And thank you, 13llama for the solution to the first part. ??Forum: Fixing WordPress
In reply to: get_post_meta not working properly for img tagSo I wrote this:
<?php echo "<img src='" . bloginfo('url') . get_post_meta($post -> ID, "product_regular", true) . "' />"; ?>
The source code reads as:
https://localhost/WidgetCorp<img src='/product-images/prod-supersprocket.png' />
The blog url is outside. ??
Forum: Fixing WordPress
In reply to: get_post_meta not working properly for img tagwhile (have_posts()) : the_post(); ?> <a href="<?php the_permalink(); ?>" class="product-jump" title="<?php echo "$" . get_post_meta($post->ID, "product_price", true); ?>" data-large="<?php get_post_meta($post->ID, "product_image", true); ?>"> <?php echo "<img src='" . get_post_meta($post -> ID, "product_regular", true) . "' />"; ?> <span class="product-title"><?php the_title(); ?></span> <span class="product-code"><?php echo get_post_meta($post->ID, "Product_Code", true); ?></span> </a> <?php endwhile; wp_reset_query();?>
So this is the category page code.
I need to concatenate the bloginfo(‘url’) part but don’t know how to
Any idea why the code was not working earlier?Forum: Fixing WordPress
In reply to: get_post_meta inside an img srcDone. Thank you WPyogi. I have started a new thread as instructed.
Forum: Fixing WordPress
In reply to: get_post_meta inside an img srcI am facing the same problem and don’t know what to do. How come that Lynda.com instructor gets it right? It works perfectly in the video. ??