Aslam Doctor
Forum Replies Created
-
Forum: Reviews
In reply to: [Rearrange Woocommerce Products] I love ItThanks for kind words @enrshoaib
Forum: Reviews
In reply to: [YARPP - Yet Another Related Posts Plugin] perfectYou’re welcome @akhilin
Forum: Plugins
In reply to: [Rearrange Woocommerce Products] Product sort not working with wp_queryIf you are querying products without selecting any category, the query will be like this
$my_query = new WP_Query( array( 'post_type' => 'product', 'posts_per_page' => 12, 'meta_query' => array( array( 'key' => '_stock_status', 'value' => 'instock' ), ), 'orderby' => 'menu_order', 'order' => 'ASC', ) );
But if you are querying for specific category, it will be like this.
$category_id = 123; $my_query = new WP_Query( array( 'post_type' => 'product', 'posts_per_page' => 12, 'tax_query' => array( array ( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => $taxonomy_slug, ) ), 'meta_query' => array( array( 'key' => '_stock_status', 'value' => 'instock' ), ), 'meta_key' => 'rwpp_sortorder_'.$category_id 'orderby' => 'meta_value_num menu_order title', 'order' => 'ASC', ) );
Let me know if that works.
You’re welcome. Glad to know it worked for you.
@techprofet the text is actually there but it’s been cut off using CSS.
If you add below code to your style.css, it will show the full title:.yarpp-thumbnails-horizontal .yarpp-thumbnail-title{ overflow:visible; }
@keengamer can you send us the exact plugin setting using the data collection feature provided with the plugin? See this video for help.
- This reply was modified 2 years, 7 months ago by Aslam Doctor.
Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] Using YARPP with GravityForm@1404iran you can not use it for related entries of gravity forms. If it is custom post type then you can use it like this
[yarpp post_type="my_post_type"]
but gravity forms are not custom post types.
Forum: Plugins
In reply to: [Rearrange Woocommerce Products] Auto sort by categoryHi @guylevi
Sorry to say but the plugin doesn’t provide that feature. You will have to create a custom loop using a main query and subqueries. The sub-queries will be for products so there you have to set the sort order to be “menu_order” Ascending.
I can help you develop this as this is more like a theme feature that will take the help of the Rearrange plugin in it to achieve the requirement. If you are interested, contact me through my website (which can be seen on my profile here).
Thank You,
AslamHello @keengamer
We have a few questions to help you with this:
1. How much Match threshold have you set up under plugin settings?
2. Have you tried by clearing the cache from plugin settings after making changes?
3. Also can you try changing the Algorithm settings so “Tags” has “consider with extra weight” and “Title” has “consider” or “do not consider” but not “consider with extra weight”? Make sure you clear the case after changing these settings.Let us know.
Forum: Reviews
In reply to: [YARPP - Yet Another Related Posts Plugin] Perfect !!!@joaocarlos Thank You.
@deon-b sorry to trouble you with the screenshot. Actually when you said “lock related posts on some posts”, I misunderstood it with something else but I had a doubt so to have more clarification, I asked you for screenshots.
- This reply was modified 2 years, 7 months ago by Aslam Doctor.
Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] Create Custom Thumbnail SizeYou can define the image size like this
add_image_size( ‘car-thumbnail’, 300, 200, true );
This is just an example. So 300 is width, 200 is height, and true means the image will crop if it doesn’t fit in the aspected ratio.
Once that is done, you can set that size from Admin Setting as per the screenshot below.
Also make sure that once you add a new image size to your theme, you have to regenerate all the images to the new sizes. For that, you have to use the “Regenerate Thumbnails” plugin.
- This reply was modified 2 years, 7 months ago by Aslam Doctor.
- This reply was modified 2 years, 7 months ago by Aslam Doctor.
Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] headline “Related articles”@mrflake09 the thumbnails template does not have the feature to change the “h3” tag. One solution is to create custom templates, it will allow you to change/remove h3 tags in any way you want.
Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] Exclude common words?@ozzymuppet my example was for excluding categories and tags by giving them zero weight.
In your case, you want to exclude specific keywords. But that feature is not available in the plugin.