rayo2010
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: pagination with 3 loopsHay Thank You SOOO MUCH , it worked like a charm ?? .
i know u may be busy and u already spent a lot of time working on my issue but can you please ‘if u r free’ explain that code for me?.
Here You made a meta array with the meta values i want to use
$meta_query = array( array( 'key' => 'package_type', 'value' => array( 'gold', 'platinum', 'normal' ), ) );
I dont understand what this line will do
$query->set( 'meta_query', $meta_query ); add_filter( 'posts_orderby', 'query_term_ratings', 10, 3 );
And then you ordered the posts in the database but i dont fully understand the logic here
function query_term_ratings( $orderby ) { global $wpdb; $orderby = " $wpdb->postmeta.meta_value = 'gold' DESC, $wpdb->postmeta.meta_value = 'platinum' DESC, $wpdb->postmeta.meta_value = 'normal' DESC, $wpdb->posts.post_date DESC"; return $orderby; }
so i hope when u have time to explain ur code but again THANK YOU SO MUCH.
Forum: Fixing WordPress
In reply to: pagination with 3 loopsyes it is.
Forum: Fixing WordPress
In reply to: pagination with 3 loopshere the link to my site:
https://testsite.thenonprofittimes.com/resource_categories/fundraising/Forum: Fixing WordPress
In reply to: pagination with 3 loopsi have 3 types of posts , GOLD , platinum and Normal.
i want the Gold posts to be shown first then the platinum and then the normal and every page only have 9 posts.so if Gold –> 6 posts and Plat —> 5 posts and Normal —> 3 posts
then first page will have 6 Gold posts and only 3 Plat posts and the next page has the rest of plat posts (2) and the normal posts (3)
Forum: Fixing WordPress
In reply to: pagination with 3 loopsEdit:
i went to setting > reading settings and changed the option Blog pages show at most from 10 to 60 . and it showed all the posts but now the pagination function doesn’t work at all ??
Forum: Fixing WordPress
In reply to: pagination with 3 loopsWell i think the pagination aint the problem. i removed the paginator but still the page dont post more than 9 posts.
i have a category A which contain 11 posts but only 9 appears.
and its not a problem with the posts cuz i shuffled them but still only 9 appears.
any sight of the reason?!!
——————————————-
here is the full code of 3 loops:
https://pastebin.com/C0cY4eKQand the snippit temp:
https://pastebin.com/yU9egGfBThx
Forum: Fixing WordPress
In reply to: pagination with 3 loopsit didnt work :/ . it does the same problem.
how many posts will that code show per page?ps: Thank you so much for replying.
EDIT:
Using the above code after exactly 10 posts it goes all wrong.
i mean if 1st loop has 4 posts and 2nd has 3 posts and the 3rd has 3 posts
it will work fine but as soon as i add a new post for the 2nd loop a post from the 1st loop goes to the 2nd page -_- ..!!!Forum: Fixing WordPress
In reply to: Various Email NotificationsCome on guys , anyhelp ??
Forum: Fixing WordPress
In reply to: woocommerce conflict with the themeaccording to https://www.wpthemedetector.com/
Theme Name: Reference
Version: 21.0
Description: The Reference WordPress Theme Since84.
Theme site: https://since84.com/
Author: Since84