Raviraya
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Woocommerce sort by meta_key stock with menu_orderHi bcworkz,
Thanks for your reply.
I am sure product post type menu order values are non zero, I have order numbers.
actually the query is giving me by stock list by title. my question is is that possible to pass arguments in orderby meta_value_num and menu_order together? I tried its not giving any results.is there any other way to do? I am bit stuck in there :(. Thanks in advance.
Forum: Plugins
In reply to: [WooCommerce] Sort products by Custom Ordering + Price0
down vote
favorite
I have created custom sorting option by stock date (which means when I change the status outstock to instock) it will give the product list by modified date. I got the list by using this code**$
args[‘orderby’] = array( ‘meta_value_num’ => ‘DESC’, ‘title’ => ‘ASC’ );
$args[‘meta_key’] = ‘_stock’;
**I would like to sort bu stock update with menu_order, so I tried this
**
$args[‘orderby’] = array( ‘meta_value_num’ => ‘DESC’, ‘title’ => ‘ASC’, ‘menu_order’ => ‘ASC’ );
$args[‘meta_key’] = ‘_stock’;
**It doesn’t list properly , any one can help me please. It would be appriciated.
Hi Damian,
Great, Thanks. Apart from that Its working perfect. Great plugin and Its very efficient with woocommerce.
Thanks
Forum: Themes and Templates
In reply to: function for putting label inside input field in formsUse the code placed in input field vales=”last name”
Forum: Themes and Templates
In reply to: function for putting label inside input field in forms<div class="mc-field-group"> <label for="mce-LNAME">Last Name </label> <input type="text" value="<strong>Last Name"</strong> name="LNAME" class="" id="mce-LNAME"> </div> <div id="mce-responses" class="clear"> <div class="response" id="mce-error-response" style="display:none"></div> <div class="response" id="mce-success-response" style="display:none"></div> </div> <div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe"></div> </form> </div>
Forum: Themes and Templates
In reply to: Continue reading…Yes , you are right Andrew .
Forum: Themes and Templates
In reply to: Continue reading…yes sorry by mistake I done this mistake. I just hide the code what you have in the theme.
Forum: Themes and Templates
In reply to: Continue reading…i am sure it works for you.
Forum: Themes and Templates
In reply to: Continue reading…yes that’s right blog.php
this is the line to hide the code but dont delete anything it will affect other thing
<a href="<?php the_permalink(); ?>"><?php _e( 'Continue Reading', THEMEDOMAIN ); ?> ?</a>
put php comment like this in this line of code
<?php /*?> <a href="<?php the_permalink(); ?>"><?php _e( 'Continue Reading', THEMEDOMAIN ); ?> ?</a> <?php */?>
Forum: Themes and Templates
In reply to: Continue reading…If you want remove the link ‘Continue reading >>’ you can hide the php code in post.php (but i am not sure this link written in this exact place in this theme.) but i am sure you hide.
[moderated – please keep the support in the forum; don’t ask for access data to someone’s ftp or site]
Forum: Themes and Templates
In reply to: function for putting label inside input field in formsHi mellyg,
I think if you want to put the labels inside the input fields. you can try this with simple html and simple JavaScript
<input type=”text” name=”unsername” onfocus=”if(this.value==’Your message here‘)this.value=”” onblur=”if(this.value==”)this.value=’Your message here‘”/>
may be you understand above the code if you need more i can help you.
Orbmix