Categories
CMS Mastering Development Wordpress

Pagination not working wit custom Query

I have created a custom Query that works perfectly with my custom post type, inside this custom post type I’m showing an archive with other custom post types: One is a city, and inside each city there will be shown the stores inside this city. THE PROBLEM When trying to apply some pagination (I do […]

Categories
CMS Mastering Development Wordpress

WordPress Query for CPT that only shows posts within radius of current user’s geolocation

I have a CPT called medical_providers. Each medical provider has two ACF meta_fields (latitude and longitude). I want to write a wp_query to only show medical providers that are within a certain range (100 miles?) of the current user’s IP address. Here is my query so far. It does not include anything related to geolocation. […]

Categories
CMS Mastering Development Wordpress

Sort by price wpdb

I have a page on my wordpress to search for tires everything works fine but I would have liked to know how to add an extra column to sort them also by price. They can already be sorted by size and type… But I can’t find a solution for the price. Thanks in advance ! […]

Categories
CMS Mastering Development Wordpress

Sort by price wpdb

I have a page on my wordpress to search for tires everything works fine but I would have liked to know how to add an extra column to sort them also by price. They can already be sorted by size and type… But I can’t find a solution for the price. Thanks in advance ! […]

Categories
CMS Mastering Development Wordpress

WordPress blog pagination not working

Please let me know if anyone know .. <?php $per_page = 6; $paged = get_query_var(‘paged’) ? : 1; $offset = (1 === $paged) ? 0 : (($paged – 1) * $per_page) + (($paged – 1) * 2); $args = array( ‘post_type’=> ‘post’, ‘posts_per_page’ => $per_page, ‘post_status’ => ‘publish’, ‘order’ => ‘DESC’, ‘orderby’ => ‘ID’, ‘paged’ […]

Categories
CMS Mastering Development Wordpress

Sort wordpress custom posts based on meta value

I’m trying to sort the custom posts based on meta value as priority level1, level2 and level3. I have given a dropdown field in post meta as featured posts, standard posts and basic posts. I want to display them as featured posts on top, then standard posts and then basic posts. I tried with below […]

Categories
CMS Mastering Development Wordpress

Sort wordpress custom posts based on meta value

I’m trying to sort the custom posts based on meta value as priority level1, level2 and level3. I have given a dropdown field in post meta as featured posts, standard posts and basic posts. I want to display them as featured posts on top, then standard posts and then basic posts. I tried with below […]

Categories
CMS Mastering Development Wordpress

Undefined index: page in loop load ajax content

as the title suggests I get this error. (Notice: Undefined index: page in /Users/denis/Sites/www.testpepe.dev.cc/wp-content/themes/bubi/functions.php on line 429) Php code: <?php function bubi_ajax_script_load_more($args) { // Init ajax $ajax = false; // Call AJAX if(!empty($_SERVER[‘HTTP_X_REQUESTED_WITH’]) && strtolower($_SERVER[‘HTTP_X_REQUESTED_WITH’]) == ‘xmlhttprequest’) { $ajax = true; } //Number Paged /* Line 429 */ $paged=$_POST[‘page’] + 1; // Number Article $num […]

Categories
CMS Mastering Development Wordpress

WP_QUERY order posts by two combined meta_value dates

The query needs to grab from thousands of posts based on two custom fields. ‘Original Date’ is required for each post, with ‘Featured Date’ being optional (hidden based on a custom checkbox field. When checked, featured_date is set to original_date by default). However, if ‘Featured Date’ is set for a particular post, it should be […]

Categories
CMS Mastering Development Wordpress

When looping by a specific variation it shows in stock if a different variation is in stock and need it to not display at all if out of stock

need major help with this one. So i have developed a fully from scratch woocommerce site on wordpress. Its for a client that has tons of different products and product variations. Now I have individual pages that are "shop by specific style page" . Here is my issue, I need to display a loop of […]