TimPowersDesign
Forum Replies Created
-
Forum: Plugins
In reply to: [Woo File Dropzone] Variations Button Disabled IndefinitelyPlease use this one, I’ve had to rollback as said, so please find the development site link here
http://whaleprint.dev.gridhosted.co.uk/shop/banners/banner/Forum: Plugins
In reply to: [Meta Box] Update causes Meta tags to disappearScratch that, I did have to remove the following line from my theme functions file, so that the back-end would stop throwing an error, but it all works perfectly now.
rwmb_meta( $field_id, $args = array(), $post_id = null );Forum: Plugins
In reply to: [Meta Box] Update causes Meta tags to disappearApologies for being silent, bearing in mind this was my issue/ticket!
I’ve finally been able to get back to this project, and just updated to 4.8.2 and Meta box works perfectly, without me changing any of the code at all.
So, thank you for listening to us all and for your support.
Forum: Plugins
In reply to: [Meta Box] Update causes Meta tags to disappearHi Manny,
As found in both code examples I have previously posted, this is how I get the meta box data to appear on the website.
<p class="price">£<?php echo rwmb_meta( 'book_price' ); ?></p>If this isn’t what you mean, you’re going to have to explain to me what you want.
Thanks
Forum: Plugins
In reply to: [Meta Box] Update causes Meta tags to disappearOh I see, you want data input. Ok usually in book_code I’d have something like B002, book_price is 20.00 (e.g.) and book_author is something like FLEURMOND (M)
mycpt isn’t an issue, that’s just a “notes” bit.
Forum: Plugins
In reply to: [Meta Box] Update causes Meta tags to disappearGrrr although I had replied to you about 5 minutes ago, it appears to have not posted.
So basically, here’s my template code. But I can’t think of anything else you would need, other than this template (which is one of many) and the one liner in the functions.php file, I haven’t needed to do anything else to make it work pre-update. The website is kentrotman.co.uk.
You can see from the code below, the custom fields are book_code, book_price, book_author and mycpt.
<?php /** * The template for displaying a book category. * Template Name:New-Osprey */ get_header(); ?> <div class="main-content index"> <h2><?php the_title(); ?></h2> <hr/> <div class="book-row-container"> <?php $args = array('category_name' => 'osprey', 'tag_slug__and' => array('osprey'), 'orderby' => 'book_code', 'order' => 'ASC', 'posts_per_page'=> -1); $postslist = get_posts($args); foreach ($postslist as $post) : setup_postdata($post); ?> <div class="book-row clearfix "> <div class="book-thumbnail"> <a href="<?php the_permalink() ?>"><?php the_post_thumbnail( $size, $attr ); ?></a> </div> <p class="code"><?php echo rwmb_meta( 'book_code' ); ?></p> <p class="code"><em><strong><?php echo rwmb_meta( 'mycpt' ); ?></strong></em></p> <a href="<?php the_permalink() ?>"><h4><?php the_title(); ?></h4></a> <p class="author"><?php echo rwmb_meta( 'book_author' ); ?></p> <p class="price">£<?php echo rwmb_meta( 'book_price' ); ?></p> <form action="formaction" method="POST"> <input type="HIDDEN" name="userid" value="9629947"> <input type="HIDDEN" name="product" value="<?php echo rwmb_meta( 'book_code' ); ?> <?php the_title();?>"> <input type="HIDDEN" name="price" value="<?php echo rwmb_meta( 'book_price' ); ?>"> <input type="HIDDEN" name="qty" value="1"> <input type="HIDDEN" name="return" value="www.kentrotman.com"> <input type="HIDDEN" name="units" value="1"> <input class="cta" type="SUBMIT" value="Buy Now" name="SUBMIT"> </form> </div> <?php endforeach; ?> <!-- ? php endwhile; ? --> </div> <br/> <h2>Previously Listed</h2> <hr/> <div class="book-row-container"> <?php $args = array('category_name' => 'osprey', 'tag_slug__and' => array('prevlist'), 'orderby' => 'book_code', 'order' => 'ASC', 'posts_per_page'=> -1); $postslist = get_posts($args); foreach ($postslist as $post) : setup_postdata($post); ?> <div class="book-row clearfix "> <div class="book-thumbnail"> <a href="<?php the_permalink() ?>"><?php the_post_thumbnail( $size, $attr ); ?></a> </div> <p class="code"><?php echo rwmb_meta( 'book_code' ); ?></p> <p class="code"><em><strong><?php echo rwmb_meta( 'mycpt' ); ?></strong></em></p> <a href="<?php the_permalink() ?>"><h4><?php the_title(); ?></h4></a> <p class="author"><?php echo rwmb_meta( 'book_author' ); ?></p> <p class="price">£<?php echo rwmb_meta( 'book_price' ); ?></p> <form action="formaction" method="POST"> <input type="HIDDEN" name="userid" value="9629947"> <input type="HIDDEN" name="product" value="<?php echo rwmb_meta( 'book_code' ); ?> <?php the_title();?>"> <input type="HIDDEN" name="price" value="<?php echo rwmb_meta( 'book_price' ); ?>"> <input type="HIDDEN" name="qty" value="1"> <input type="HIDDEN" name="return" value="www.kentrotman.com"> <input type="HIDDEN" name="units" value="1"> <input class="cta" type="SUBMIT" value="Buy Now" name="SUBMIT"> </form> </div> <?php endforeach; ?> <!-- ? php endwhile; ? --> </div> <?php get_footer(); ?>Forum: Plugins
In reply to: [Meta Box] Update causes Meta tags to disappearHi Manny,
The code I posted in my first post is one example of where I use your plugin. I’ll provide an entire template code below. If you’d like to look at the site to see how it works, it’s kentrotman.co.uk
<?php /** * The template for displaying a book category. * Template Name:New-Osprey */ get_header(); ?> <div class="main-content index"> <h2><?php the_title(); ?></h2> <hr/> <div class="book-row-container"> <?php $args = array('category_name' => 'osprey', 'tag_slug__and' => array('osprey'), 'orderby' => 'book_code', 'order' => 'ASC', 'posts_per_page'=> -1); $postslist = get_posts($args); foreach ($postslist as $post) : setup_postdata($post); ?> <div class="book-row clearfix "> <div class="book-thumbnail"> <a href="<?php the_permalink() ?>"><?php the_post_thumbnail( $size, $attr ); ?></a> </div> <p class="code"><?php echo rwmb_meta( 'book_code' ); ?></p> <p class="code"><em><strong><?php echo rwmb_meta( 'mycpt' ); ?></strong></em></p> <a href="<?php the_permalink() ?>"><h4><?php the_title(); ?></h4></a> <p class="author"><?php echo rwmb_meta( 'book_author' ); ?></p> <p class="price">£<?php echo rwmb_meta( 'book_price' ); ?></p> <form action="formaction" method="POST"> <input type="HIDDEN" name="userid" value="9629947"> <input type="HIDDEN" name="product" value="<?php echo rwmb_meta( 'book_code' ); ?> <?php the_title();?>"> <input type="HIDDEN" name="price" value="<?php echo rwmb_meta( 'book_price' ); ?>"> <input type="HIDDEN" name="qty" value="1"> <input type="HIDDEN" name="return" value="www.kentrotman.com"> <input type="HIDDEN" name="units" value="1"> <input class="cta" type="SUBMIT" value="Buy Now" name="SUBMIT"> </form> </div> <?php endforeach; ?> <!-- ? php endwhile; ? --> </div> <br/> <h2>Previously Listed</h2> <hr/> <div class="book-row-container"> <?php $args = array('category_name' => 'osprey', 'tag_slug__and' => array('prevlist'), 'orderby' => 'book_code', 'order' => 'ASC', 'posts_per_page'=> -1); $postslist = get_posts($args); foreach ($postslist as $post) : setup_postdata($post); ?> <div class="book-row clearfix "> <div class="book-thumbnail"> <a href="<?php the_permalink() ?>"><?php the_post_thumbnail( $size, $attr ); ?></a> </div> <p class="code"><?php echo rwmb_meta( 'book_code' ); ?></p> <p class="code"><em><strong><?php echo rwmb_meta( 'mycpt' ); ?></strong></em></p> <a href="<?php the_permalink() ?>"><h4><?php the_title(); ?></h4></a> <p class="author"><?php echo rwmb_meta( 'book_author' ); ?></p> <p class="price">£<?php echo rwmb_meta( 'book_price' ); ?></p> <form action="formaction" method="POST"> <input type="HIDDEN" name="userid" value="9629947"> <input type="HIDDEN" name="product" value="<?php echo rwmb_meta( 'book_code' ); ?> <?php the_title();?>"> <input type="HIDDEN" name="price" value="<?php echo rwmb_meta( 'book_price' ); ?>"> <input type="HIDDEN" name="qty" value="1"> <input type="HIDDEN" name="return" value="www.kentrotman.com"> <input type="HIDDEN" name="units" value="1"> <input class="cta" type="SUBMIT" value="Buy Now" name="SUBMIT"> </form> </div> <?php endforeach; ?> <!-- ? php endwhile; ? --> </div> <?php get_footer(); ?>Hope this is what you meant. Otherwise, aside from the small line in the functions.php file, I have done nothing else to make it work.
Thanks
Forum: Plugins
In reply to: [Meta Box] Update causes Meta tags to disappearHi Manny,
What do you mean by “Can you provide the code that sets up the meta box?”
The code in my OP is just one example of a number of separate templates that use the same code (but with different categories/tags) to display the custom fields (book_code, book_author, book_price) for each book.
The code for the functions.php file is as follows
rwmb_meta( $field_id, $args = array(), $post_id = null );