This thread is resolved. Here is a description of the problem and solution.
Problem:
In this user's case they added a filter to their view, however the view was not returning the correct result based on the value provided for the filter.
Solution:
For this I checked the filter and it looked fine, so what I did was to remove and re-add the filter and it started to work fine.
This support ticket is created 5 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Our next available supporter will start replying to tickets in about 3.20 hours from now. Thank you for your understanding.
I have set up a shortcode that returns the value of a URL parameter if set. If not set this shortcode will return the current post author ID. This code (copied below) works correctly.
// Register Referrer URL Parameter Shortcode
add_shortcode("referrer-id", "referrer_id");
function referrer_id() {
if (isset($_GET["referrer"])) { // If Referrer is Set in URL Parameter
// Get Referrer User Id from URL Parameter
$referrerId = $_GET["referrer"];
} else { // Set store branding to product Vendor
$referrerId = get_the_author_meta('ID');
}
return $referrerId;
}
I then have a View that should return all posts that have a custom field value that matches the number output by the shortcode. The custom field being checked is a repeating field.
Whilst the shortcode outputs correctly and there are existing posts that should be returned, the view does not return any results.
I have tried re-creating the view from scratch but this did not fix the issue.
I suspect the issue here is that you didn't add your shortcode name to the view 3rd party shortcode arguments. You can add it by going to Toolset -> Settings -> Frontend -> 3rd party shortcode arguments.