davidR-12
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
How to display featured image URL
Iniciado por: davidR-12
en: Toolset Professional Support
Problem: Solution: [wpv-post-featured-image size="full" output="url"] Relevant Documentation: |
2 | 3 | hace 6 años, 2 meses | ||
How to add custom fields to PHP – Currently not displaying
Iniciado por: davidR-12
en: 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 | hace 6 años, 2 meses | ||
How to display term meta fields alongside the taxonomy terms of a post
Iniciado por: davidR-12
en: Toolset Professional Support
Problem: Solution: |
2 | 3 | hace 6 años, 3 meses | ||
Displaying the name of the current category
Iniciado por: davidR-12
en: 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 | hace 6 años, 3 meses | ||
Integrating two search views?
Iniciado por: davidR-12
en: 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 | hace 6 años, 3 meses | ||
View shortcodes not working
Iniciado por: davidR-12 en: Toolset Professional Support |
2 | 2 | hace 6 años, 4 meses | ||
Post appear in a View multiple times if in multiple categories
Iniciado por: davidR-12
en: 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 | hace 6 años, 6 meses | ||
How to remove posts displayed using post id filter
Iniciado por: davidR-12
en: 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 | hace 6 años, 6 meses | ||
HUGE limitation in the new repeatable;e fields groups
Iniciado por: davidR-12 en: Toolset Professional Support |
2 | 5 | hace 6 años, 6 meses | ||
Types beta crashes site
Iniciado por: davidR-12 en: Toolset Professional Support |
2 | 3 | hace 6 años, 6 meses | ||
How to delete repeatable field groups?
Iniciado por: davidR-12 en: Toolset Professional Support |
2 | 2 | hace 6 años, 6 meses | ||
Beta update stuck and site down
Iniciado por: davidR-12
en: Toolset Professional Support
Problem: Solution: So in the event that this happens, manually uploading the plugin should resolve the issue. |
2 | 5 | hace 6 años, 7 meses | ||
A way for users to select custom posts on the frontend
Iniciado por: davidR-12
en: 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 | hace 6 años, 7 meses | ||
Ajax search not working
Iniciado por: davidR-12
en: 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 | hace 6 años, 9 meses | ||
How to display certain categories using the shortcode?
Iniciado por: davidR-12 en: Toolset Professional Support |
3 | 8 | hace 6 años, 11 meses |