I’m new in Pods and try to use your gutenberg block to create list of doctors (this is first pod) showed by custom taxonomy (departments, second pod). I struggle to make correct clause for your “Where” field.
I have created Pod Doctors, and template for showing items. Then I’ve created Departments and set it as category in “Connection” tab of Doctors. Is it enough to show list of doctors inside department or I need to create some kind of relation field?
Thank you
]]>I have been unable to find an elegant way of solving this need. A WHERE clause would allow me to filter between dates, but would only be needed if the user provided lower and upper dates in the search form. And also, I’m not sure about the way to supply the WHERE line in the Data Table definition with the appropriate form field references.
Am I making this overly complex? Sorry for not providing a link to the existing solution, but is isn’t public yet.
]]>PHP message: WordPress database error Unknown column 'business_id' in 'where clause' for query SELECT count(*) FROM wp_grp_google_review WHERE business_id = 6 made by do_action('wp_ajax_grw_feed_save_ajax'), WP_Hook->do_action, WP_Hook->apply_filters, WP_Rplg_Google_Reviews\Includes\Feed_Serializer_Ajax->save_ajax, WP_Rplg_Google_Reviews\Includes\Core\Core->get_reviews, WP_Rplg_Google_Reviews\Includes\Core\Core->get_data, WP_Rplg_Google_Reviews\Includes\Core\Core->get_google_reviews" while reading response header from upstream
Looks like the column business_id
has been renamed to google_place_id
The issue looks to be within the class-core.php
file on line 220.
// Calculate Google reviews count
if (isset($place->review_count) && $place->review_count > 0) {
$review_count = $place->review_count;
} else {
$review_count = $wpdb->get_var(
$wpdb->prepare(
"SELECT count(*) FROM " . $wpdb->prefix . Database::REVIEW_TABLE .
" WHERE business_id = %d", $place->id
)
);
}
Hope this helps resolve the bug currently being seen.
]]>I created a pods (name : campagne) with a ‘active’ field of type yes/no.
I created several instances of the pods with active yes or no.
Now, I want to display them using a template (name : Liste campagnes), and in two groups :
– a group of active
– a group of inactive
i’m using the following blocks. Unfortunately, they both display the list of all the pods instances, bypassing the yes/no field value. I tried with 1 and 0, ‘Yes’ and ‘No’, and ‘Oui’ and ‘Non’ as I’m french
What did I do wrong ?
[pods name=”campagne” template=”Liste campagnes” where=’active.meta_value = ‘1″‘ orderby=”DATE(date_campagne.meta_value) DESC” limit=”-1″]
[pods name=”campagne” template=”Liste campagnes” where=’active.meta_value = ‘0″‘ orderby=”DATE(date_campagne.meta_value) DESC” limit=”-1″]
]]>I have the premium version running WordPress 5.8.3, php version 7.4.27
]]> [pods name=”learning_activity” template=”download_files” where=”id = ‘{@ID}'”]
OR
[pods name=”learning_activity” template=”download_files” id = “{@ID}”]
OR
[pods name=”learning_activity” template=”download_files” id = {@ID}]
none of them working to get current pod custom field
I need to pass the id dynamic from the post i opened not to put it static like your docs
[pods name=”pod” id=”5″]
What I believe we need to put all required where clauses into query clause instead of post_filter for better search & performance.
]]>Channel and Tournament are linked with a relationship field with multiple option (meaning a Tournament can be on several channels and a channel can have several tournaments).
Game and Tournament are linked similarly.
In a Pods template for Games (i.e. an individual game within a tournament) – I want to display which channels are showing games for that Tournament. i.e.
Game A is Part of Tournament 1
Tournament 1 is Shown on Channels 3 & 4
Return Channel 3 & Channel 4.
[pods name=”Channels” where=”Game.Tournament.meta_value IN ({@Channels.Tournaments})” template=”templatePod”]
The issue seems to be with the fact I’m trying to search in an array. Can someone please clarify the right way to approach this?
]]>I would have preferred pulling in the wp_users ID instead of the user_login value, but I can work with it.
]]>The situation
I have a pods, let’s say ‘profile’
In the profile there is a field with multiple other pods, lets say ‘attachment’ is the name of the pods and ‘attached_files’ the field in profile.
Attachment has a field ‘file_type’.
When I want to display only fields of ‘field_type’ I tried
(current pots is ‘profile)
[pods template=”my_template” where=”attached_files.file_type=’Image’]
The template shows, but the ‘where’ selection is not done, it shows all attached_files and not just ‘Image’.
]]>