MrWilson2013
Forum Replies Created
-
Forum: Plugins
In reply to: [Amazon Link] Metadata ShortcodeFrom the man himself. Thanks for the reply!
I’ve tried a few different ways including removing the “[ ]” from the shortcode contained within the ACF field.
When using:
global $wp_query; $postid = $wp_query->post->ID; $shortcode = get_post_meta($postid,'AmazonAsin',true); echo do_shortcode($shortcode); wp_reset_query();When AmazonAsin contains
amazon template=template&asin=B00ADMY592It displays only whats contained and doesnt actually run the shortcode.
Thanks for the help.
Forum: Plugins
In reply to: [Amazon Link] Metadata ShortcodeI thought I better include what I’ve tried
When “AmazonAsin” contains
[amazon template=template&asin=B00ADMY592]<?php $shortcode = get_post_meta($post->ID,'AmazonAsin',true); echo do_shortcode($shortcode); ?><?php if (function_exists('amazon_shortcode')) echo amazon_shortcode(get_post_meta($post->ID, 'AmazonAsin', true)); ?>When “AmazonAsin” contains just the ASIN number of a product
<?php $AmazonAsin = get_post_meta($post->ID, 'AmazonAsin', TRUE); if (function_exists('amazon_shortcode')) echo amazon_shortcode('asin='.$AmazonAsin.'&template=Template'); ?>This almost worked. It displayed the template but did not call the price or link
- This reply was modified 6 years, 10 months ago by MrWilson2013.
Forum: Plugins
In reply to: [Manual Related Posts] Adding information and layout.Fixed the first Issue above – Didnt copy it correctly over. I can only add 2 related items before it clones itself.
http://www.awesomescreenshot.com/image/1285557/904ffcbf7ca3c725016dd62da55a1178
Forum: Plugins
In reply to: [Manual Related Posts] Adding information and layout.The layout works perfectly everything is in its correct place.
2 issues. First the related post I selected doesnt show, The product im currently on shows. (Current post)
The second issue is, is that the prices will not show. It just sets them to £0.00
This is the price bit on its own. and this is the plugin im using
https://wordpress.org/plugins/custom-field-suite/`
<?php if ( CFS()->get( 'manual_price' ) ){ ?> <div class="price-box-cust"> <?php echo CFS()->get( 'manual_price'); ?> </div> <?php } else { ?> <?php $min_price = !empty( $product_metas[get_the_ID()] ) ? $product_metas[get_the_ID()]['minPrice'] : 0; echo __( '', 'compare' ).'<div class="price-box-cust">'.compare_format_currency_number( $min_price ).'</div>'; ?><?php } ?>Forum: Plugins
In reply to: [Amazon Product in a Post Plugin] Visual Editor Not working with this pluginI have just turned off all anti virus and problem is still there, It must be the theme itself causing it.
This is what I’m currently using
http://themeforest.net/item/price-compare-price-comparison-wordpress-theme/12488367
Forum: Plugins
In reply to: [Amazon Product in a Post Plugin] Visual Editor Not working with this pluginHi thanks for the reply, I actually dont use any ad blockers or extensions in chrome or any other browser.
I’ve reduced my plugins to just this plugin to and the problem is still there.
Is it possible it could be the theme? I’m happy to use the text editor but would like to try and get the visual one working.
thanks again
Forum: Plugins
In reply to: [Custom Field Suite] PHP IF field is filledAh sorry just figured it out, Updated the above code for future reference!
Forum: Fixing WordPress
In reply to: Category Split-upTrying to get this to work, Got the columns set, how ever its now just trying to split the php code between them both… hmm
Thank you, I think i’ll be able to handle it from here 🙂