-
get_terms()
creates aWP_Term_Query()
and then passed the$args
to it. It also applies theget_terms
filter to the terms before they’re returned.get_terms()
is, in this case, a convenience function, to use if you don’t need all the bells and whistles aWP_Term_Query
might provide. -
As far as
the_title()
andthe_permalink()
, those functions are meant to work on posts, not taxonomy terms.the_title()
will only have meaning if you’re in The Loop, I believe. Outside The Loop, you can useget_the_title()
, but you’ll need to pass it a post or a post ID. -
Your image problem might be because you’re changing from
featuredartistthumbnailimage
andfeaturedartistthumbnailimagesize
toartistthumbnailimage
andartistthumbnailimagesize
in your code.
Related Posts:
- How to display Yoast SEO meta description in archive template for each post instead of the_excerpt()? [closed]
- How to get Author ID outside the loop
- remove tags from the_content
- the_title() shows title of the first post instead of the page title?
- Why do themes rely on “The Loop”?
- How to place comments_template(); outside the loop?
- Endless loop with wp_insert_post and wp_update_post
- Hook into the loop via a plugin, and output something after every X post?
- Two custom loops, pagination, offset
- What exactly defines a Main Loop and a Secondary Loop?
- Loop code is displaying pages but not actual posts
- Access to Media Library
- Getting two wp_link_pages output
- post loop causes wp_users and wp_usermeta DB queries for each users
- Ajax loop refresh on click
- Run The Loop over array of post objects
- the_excerpt(), get_the_excerpt() and the_content() all killing “the Loop”
- Enable infinite scroll on single.php [closed]
- Is get_posts() more efficient than The Loop?
- loop through all posts memory error
- How to retrieve “sticky” post outside the “loop”?
- Targeting a Certain Post in Loop (CSS)
- code suddenly appearing from my tempate second loop
- Get post/page data outside the loop
- Display most viewed post from last 30 days is not working correctly
- Split loop to load WordPress gallery into Bootstrap modal and carousel
- woocommerce get_price_html not pulling in correct price
- Trouble Formatting DateTime
- Order archive results by post id in custom taxonomy template
- How to fix pagination for custom loops?
- pre_get_posts for two loops on same page
- Modify the main loop to display current month / year
- Modified loop-single-forum.php to work inside of a sidebar Widget, not working on some site pages
- Problem with displaying HTML content after in_array [closed]
- Both a page loop and posts loop on the same page
- Loop for sticky posts
- Get author_id in wordpress
- Single.php different behaviour from admin to non-admin
- WordPress Blog has an infinite redirect loop
- Stepping through a foreach loop – adding +1 to the end of it so next time it loops it starts on item 2
- Array ids post to function have_post
- Can’t access PHP array inside script localization from javascript
- ACF – add a group inside a repeater [closed]
- How to create bootstrap grid loop?
- Give each posts in a loop a number in sequence
- Get post offset/posts page offset in single post page (outside the loop)
- First article : single column; Other articles : 2 columns
- How can I access specific posts brought back by query_posts?
- get_comments with post_status ‘public’ retrieves NULL result
- Content Visibility for WordPress is not working (Drafts, public etc.)
- Generating a perfect loop
- I have broke my pagination, same posts on all pages (index.php)
- I need to display all post in onepage
- Filter existing hook using parameter and foreach loop
- Run “the loop” in a random order
- WordPress loop not working only on home page, works on all other pages
- Exclude category from get_the_category
- Search page loop banner image issue
- Video post format, extra content breaks video embed
- Why is my category post repeating twice
- Adding a featured image to a foreach WordPress loop
- Hook to main query with filters based on custom fields
- Getting selection of posts based on loop variables via Ajax
- Why would this code work locally but break online?
- Why would a completely normal loop give offset errors and maximum execution time errors?
- Avoid WP_Query’s duplicate posts with taxonomies
- How can I change how my tag pages display?
- Properly loop through and paginate page on each function call
- Get a Post Loop based on Logged in User information into a Shortcode
- Loop keeps showing the same post even when I click on a different one
- Query users and count totals based on meta values
- how to add 4 post in one carousel slide
- Only Show Excerpt After First 3 Posts
- How to insert content before pagination in loop?
- Exclude Posts Using Meta Query and User Meta
- Is “the loop” a template tag?
- Show a list of user posts in the user admin page
- Deeply Nested Menu Loop with Twig using Timber [closed]
- WordPress redundant posts based on meta field
- WordPress with woocommerce custom query
- Get featured image outside the loop using foreach
- Page gets displayed in post field
- Active class for my flexslider in WordPress
- pre_get_posts main_query not displaying after applying tax_query filters
- setup_postdata in “loop-handling” php file called via $.ajax
- get_template_part() to render single page Theme
- Can’t see custom field after the Loop [closed]
- Showing related posts (custom post type) outside of the loop
- Same Loop on Multiple Pages
- get all page templates
- The Loop for my theme with static front page is not working
- WordPress loop: Display if posts exist
- strange parse error when including a loop template within another template
- Previous Posts Link and Next Posts Link Show All The Same Articles?
- Posts Loops To Display Specific Posts Inside Page Template?
- Use callback function in AJAX pure javascript [closed]
- Showing ads after posts in home page
- Undefined variable: woocommerce_loop [closed]
- title not being printed within html tag [closed]
- Use Base-URL with Query-Loop