davidR-12
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
How to add custom fields to PHP – Currently not displaying
Started by: davidR-12
in: Toolset Professional Support
Problem: I would like to display custom fields in PHP using types_render_field, but it doesn't seem to be working. Solution: Update to Types 3.0.7, use a specific post ID, and do not use the wpcf- field prefix. Relevant Documentation: |
2 | 11 | 6 years, 2 months ago | ||
How to display term meta fields alongside the taxonomy terms of a post
Started by: davidR-12
in: Toolset Professional Support
Problem: Solution: |
2 | 3 | 6 years, 2 months ago | ||
Displaying the name of the current category
Started by: davidR-12
in: Toolset Professional Support
Problem: Solution: In the meantime you can register a custom shortcode to output the term, which will output the name by default but when using the field argument can optionally output and of the name, slug, the description, count, or the taxonomy itself. /* * Output taxonomy fields on a taxonomy archive * * attribute 'field' : name | slug | taxonomy | description | count */ add_shortcode( 'taxonomy', function( $atts = [] ){ // default to taxonomy name $atts = shortcode_atts( [ 'field' => 'name' ], $atts ); $output = ""; global $wp_query; $tax = $wp_query->get_queried_object(); $field = $atts['field']; $output = $tax->$field; return $output; }); |
2 | 3 | 6 years, 3 months ago | ||
Integrating two search views?
Started by: davidR-12
in: Toolset Professional Support
Problem: I have 2 search views. One is on the home page and is a 2 dropdowns and a search button. This takes the user to the search page where results are displayed. However, I need this page to have a different style of search filter on the left hand side so I have created a second one with checkboxes replacing the dropdowns. The issue is that as this is a second search view it does not update the first views results. Solution: You just need to make sure both views are passing the same URL parameter name. See the solution here: Relevant Documentation: |
2 | 3 | 6 years, 3 months ago | ||
View shortcodes not working
Started by: davidR-12 in: Toolset Professional Support |
2 | 2 | 6 years, 4 months ago | ||
Post appear in a View multiple times if in multiple categories
Started by: davidR-12
in: Toolset Professional Support
Problem: I have a View of posts filtered by taxonomy, and I want each post to appear multiple times depending on the number of terms that match the filters. Solution: Or, use a View of posts nested inside a View of terms, and set up the filters as links that update the URL parameters correctly. Relevant Documentation: |
2 | 2 | 6 years, 5 months ago | ||
How to remove posts displayed using post id filter
Started by: davidR-12
in: Toolset Professional Support
Problem: I have a View that uses a post ID filter based on a URL parameter. I am able to use the URL parameter array to show multiple posts in the View results. I would like to be able to allow my Users to click a button next to any result to remove that result from the list, and show an updated list of results. For example, here is the URL format for the View: I would like to be able to click a button next to post ID 23 and end up at a URL like this: Solution: I can't think of any easy way to do this without some JavaScript URL manipulation. Something like this: jQuery('#wpv-supplier-comparison :submit').click(function(e){ e.preventDefault(); var url = window.location.href, val = jQuery(e.target).val(), firstVarString = '?post_ids%5B%5D=' + val, notFirstVarString = '&post_ids%5B%5D=' + val, firstVarPos = url.indexOf(firstVarString), notFirstVarPos = url.indexOf(notFirstVarString), pos = firstVarPos > -1 ? firstVarPos : notFirstVarPos, varString = firstVarPos > -1 ? firstVarString : notFirstVarString, urlArray = url.split(varString, 2), newUrl = urlArray[0] + urlArray[1]; if(newUrl.indexOf('?') < 0) { newUrl = newUrl.substr(0,newUrl.indexOf('&')) + '?' + newUrl.substr(newUrl.indexOf('&')+1); } window.location.href = newUrl; }); |
2 | 3 | 6 years, 5 months ago | ||
HUGE limitation in the new repeatable;e fields groups
Started by: davidR-12 in: Toolset Professional Support |
2 | 5 | 6 years, 6 months ago | ||
Types beta crashes site
Started by: davidR-12 in: Toolset Professional Support |
2 | 3 | 6 years, 6 months ago | ||
How to delete repeatable field groups?
Started by: davidR-12 in: Toolset Professional Support |
2 | 2 | 6 years, 6 months ago | ||
Beta update stuck and site down
Started by: davidR-12
in: Toolset Professional Support
Problem: Solution: So in the event that this happens, manually uploading the plugin should resolve the issue. |
2 | 5 | 6 years, 6 months ago | ||
A way for users to select custom posts on the frontend
Started by: davidR-12
in: Toolset Professional Support
Problem: The issue here is that the user wants to display a list of posts with his views plugin and then allow the users to select multiple posts from that list and pass it to Contact form 7. Actually this is not possible and would require some custom code to achieve. |
2 | 2 | 6 years, 7 months ago | ||
Ajax search not working
Started by: davidR-12
in: Toolset Professional Support
Problem: Solution: Check the browser console for JS errors. In this case the developer had dequeued jQuery which is loaded by WordPress itself and is required. |
2 | 7 | 6 years, 9 months ago | ||
How to display certain categories using the shortcode?
Started by: davidR-12 in: Toolset Professional Support |
3 | 8 | 6 years, 11 months ago | ||
Displaying the posts that are connected to a custom post that is connected to a
1
2
Started by: davidR-12 in: Toolset Professional Support |
2 | 19 | 6 years, 11 months ago |