Comments on: Divi Custom Queries https://diviplugins.com/divi-custom-queries/ Wordpress plugins for Elegant Theme's Divi Thu, 09 Feb 2023 17:59:19 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Brad Crawford https://diviplugins.com/divi-custom-queries/#comment-104688 Thu, 09 Feb 2023 17:59:19 +0000 https://www.diviplugins.com/?p=4277#comment-104688 In reply to Daniel Trimpey.

Hi Daniel! I’m afraid Divi FilterGrid cannot query taxonomies or authors. These are not considered post types and do not use WP_Query. What you CAN do is create a page for each of your categories. Then display those pages and featured images in Divi FilterGrid. You can also use our custom URL feature to link each page directly to the corresponding category page. If you have a lot of categories, you would probably want a more dynamic solution though.

An alternative solution would be to create a custom module that does exactly what you’re wanting to do using our Divi Module Builder plugin – https://diviplugins.com/downloads/divi-module-builder/. If you’re interested in this solution, we would be happy to help you build it and can style it similar to Divi FilterGrid.

]]>
By: Daniel Trimpey https://diviplugins.com/divi-custom-queries/#comment-104687 Wed, 08 Feb 2023 21:26:45 +0000 https://www.diviplugins.com/?p=4277#comment-104687 Hi,

I want to create a page that displays a grid of just the Categories (which link to their respective category/archive page). I have used ACF to add an image field to the Categories. Would it be possible to use Divi Filter Grid with a custom query to accomplish this and use the ACF image field as the category’s “Featured Image”?

]]>
By: Brad Crawford https://diviplugins.com/divi-custom-queries/#comment-104674 Thu, 29 Dec 2022 21:58:36 +0000 https://www.diviplugins.com/?p=4277#comment-104674 In reply to Pablo Gutierrez.

Hi Pablo! Yes this should be possible. I believe you already created a support ticket for this for the Owl Carousel Pro plugin? Let’s continue our discussion there and we can help you create the query and dynamic HTML based on custom field values. Thanks!

]]>
By: Pablo Gutierrez https://diviplugins.com/divi-custom-queries/#comment-104673 Wed, 21 Dec 2022 21:26:54 +0000 https://www.diviplugins.com/?p=4277#comment-104673 Hi! Thanks for the plugin! Is amazin!
I think I have a complex query to do.

I need to get the items from custom type post where some ACF field (advance custom field) is equal to a value that this value is the same from the current post.

Do you think is possible?

Thanks!

]]>
By: Brad Crawford https://diviplugins.com/divi-custom-queries/#comment-102925 Tue, 31 May 2022 16:28:27 +0000 https://www.diviplugins.com/?p=4277#comment-102925 In reply to Mauro Martins.

Hi Mauro! I’m sorry I missed this comment. Hopefully you were able to get a response through a support ticket. If not and if you’re referring to the Owl Carousel Pro plugin, this would be possible but not using the custom query method. You would need to use the custom items method:
https://diviplugins.com/documentation/owl-carousel-pro/custom-items/

Then you could query your posts and loop through the results, inserting your custom content in between each post or whatever you are trying to achieve.

]]>
By: Mauro Martins https://diviplugins.com/divi-custom-queries/#comment-101911 Tue, 03 May 2022 16:32:44 +0000 https://www.diviplugins.com/?p=4277#comment-101911 In reply to Mauro Martins.

EDIT:
For example if the user is the navigating through the slider I would like to show custom content on the middle slider and the other two CUSTOM CONTENT stay invisible.

]]>
By: Mauro Martins https://diviplugins.com/divi-custom-queries/#comment-101910 Tue, 03 May 2022 16:31:34 +0000 https://www.diviplugins.com/?p=4277#comment-101910 Hi there,

I have a question.

I would like to know if it is possible to display 3 thumbnails and add custom content only on the middle slide.

For example if the user is the navigating through the slider I would like to show custom content on the middle slider and the other two stay invisible.

Thanks

]]>
By: Brad Crawford https://diviplugins.com/divi-custom-queries/#comment-97495 Tue, 18 Jan 2022 23:48:41 +0000 https://www.diviplugins.com/?p=4277#comment-97495 In reply to Pip Spratt.

Hi Pip! I think it would be best to move this from comments to a support ticket. Please create a support ticket and paste your code there and we would be happy to help you solve this – https://diviplugins.com/my-account/support/

]]>
By: Pip Spratt https://diviplugins.com/divi-custom-queries/#comment-97435 Tue, 18 Jan 2022 11:36:22 +0000 https://www.diviplugins.com/?p=4277#comment-97435 All right I almost figured it out (look at my previous comment above). I only have 1 small issue, when I click the Load More button I get no results and all post disappear. Please have a look here: https://mynutriweb.com/test-webinar/ section Related Webinars. Can you please help to solve this problem? This is my code:

$current_post_id = get_the_ID();
$terms_of_current_post = get_the_terms($current_post_id, ‘post_tag’);
$terms_ids = array();
foreach ($terms_of_current_post as $term_object) {
$terms_ids[] = $term_object->term_id;
}
return array(
‘cat’ => ‘11,12,38,16’,
‘posts_per_page’ => ‘3’,
‘post__not_in’ => array($current_post_id),
‘tax_query’ => array(
‘relation’ => ‘AND’,
array(
‘taxonomy’ => ‘post_tag’,
‘field’ => ‘term_id’,
‘terms’ => $terms_ids,
‘operator’ => ‘IN’
)
)
);

]]>
By: Pip Spratt https://diviplugins.com/divi-custom-queries/#comment-97434 Tue, 18 Jan 2022 10:52:10 +0000 https://www.diviplugins.com/?p=4277#comment-97434 Hi,
I’m trying to display related content to the post tags but from certain categories – is that possible? I tried an option with Query Type se to Related Posts but then it displayed posts from all the categories and I want just from 4 categories. Then I tried to use Custom Query but I don’t know how to combine 4 categoeies I want with related tags of a post?

]]>