If it is straight pass through to native WP function this might work:
{% for distrito in wp.get_terms('Distritos', {'foo': 'bar'} ) %}
However overall this is specific to implementation and is hard to guess without taking that code apart.
Related Posts:
- Adjust the results quantity for Search Results page pagination
- Is it possible to use the featured image of a page as a css background without inlining?
- Switching between custom templates in a post type of the admin menu
- I have a problem in the order of enqueues while enqueuing stylesheets and scripts for a specific page in my function.php
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- Use WordPress function in php file
- How to call multiple functions from multiple files into a WordPress page template [closed]
- pass html code to worpdress
- Check if current post in loop is last on current page
- What syntax is this? “{{post.price}}”
- Hide categories that are not used in the post type
- How can I get a single php file that is the equivalent of an existing WordPress page?
- How do I add custom bulk actions to multiple custom post types?
- Add_action not working in required file of functions.php
- How to set up VS Code for WP plugin/theme development in 2021? [closed]
- adding custom user input fields in WordPress admin dashboard gives error The link you followed has expired. Please try again
- Get and insert order email address to the PHP template inside HTML text
- what is the best practice to add new field to an api route
- Custom search results page not working with empty search
- Grab posts by multiple categories
- Can’t access variable outside for loop
- add custom link to wordpress media gallery modal
- How to show single category archive
- Need Help Fixing My Iframes [closed]
- code is skipping a div
- Avoid parallax images hardcoding
- Improve page speed loading using CDN and async or defer attribute
- Issues getting PHP to display in category pages
- populate form fields in a loop with ajax
- Error in custom php function doesn’t exist
- Customizer: active_callback and sanitize_callback incompatibility?
- post created but no permalink
- Change title only in dynamic page
- Populate editor with some content of a page with a page template
- Two queries for a WP_User_Query search work perfectly apart, but not together
- Recent Posts Not Showing Only On A Specific Category Page [closed]
- Catchable fatal error: Object of class stdClass could not be converted to string after WP 4.7
- Secondary navigation menu on one page
- Enable custom logo upload if logo is not in header
- Menu jumping when calling it via PHP
- Displaying recent posts on static page with template-part via shortcode
- How to edit widget code to add unique class name to each div?
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Skt full width basic slideshow problem
- How can I edit the content in index.php? [duplicate]
- How to disable controls in theme customizer?
- How do I link a button I created in theme customizer to a function?
- Trying to retrieve post meta
- can i fetch a custom metabox data in another page or post type?
- Is there a way to conditionally check whether a WordPress post title is empty?
- Woocommerce Show Single Product on Homepage
- how to show only specific category for a template
- Show a different code on front page to other pages
- Does wordpress templates always in files or in database?
- get_template_part for specific page
- How do I create my own .php file with a code part and echo it on different pages?
- Is there any tool to find lines of codes responsible to generate front-end HTML elements?
- Can’t print Yoast meta description into page template (syntax error, unexpected ‘.’) [closed]
- Using same variable names in files added with get_template_part()
- How to remove woocommerce_breadcrumb() from do_action( ‘woocommerce_before_main_content’ ); [closed]
- ‘Post-thumbnails’ feature does not seem to register
- if statement with is_active_sidebar()
- WordPress admin-ajax.php
- Use .php file as page instead of wordpress page & template file?
- PHP include is only working in certain places in my custom WP theme
- Adding wrapper elements in the_date() like in the_title()?
- What does this mean in wordpress? Easy question
- How to get all author posts outside of author templates
- How to obtain the current website URL in my theme?
- Syntax error when I try to insert my loop into an unordered list? [closed]
- What exactly do this function declared into functions.php file of a WP theme?
- Add filter multiple times using only one master function
- Admin ToolBar not being displayed at top of site
- Create a Blog Template Page
- Royalty-Free Sliders used in theme development
- Showing latest post without 301 redirect
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- WordPress template page name displayed on screen
- Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?
- How to set up a If is_singular statement?
- Reason to add a name of the theme like (‘menu-1’ => __( ‘Primary’, ‘twentynineteen’ ),) in PHP?
- Underscore – Self hosted fonts
- Separation of presentation and code – WordPress
- Search form does not work in my website
- Show About and Contact Us page when they’re clicked in the top menu.
- single.php with different look by category
- Is There A Way To Make Theme Files Accept Shortcodes?
- get_template_part() not firing within a switch statement when template has new WP_Query
- WordPress Customizer Default Image
- Theme’s Options Page included with require_once *.php in functions.php not visible anymore
- zip unzip attachments in wordpress
- Get title attribute from galleries
- How to show an entire post content and not also the excerpt?
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- WordPress import media error
- Why in my theme I can’t see all the statics content under the posts?
- get_template_directory adding FTP root folders in urls
- Why is an array created in a function hooked to customize register populated when customizer is loaded but not when the front-end is loaded?
- Theme not calling Jquery properly
- How do I define a lookup table that will work across all PHP elements of the template?