If you change the paramter “number” to 2 in the line :
$terms = get_terms( 'issue', 'orderby=id&order=DESC&number=1' );
You’ll get the last 2 terms, so the 2 you want ?
Related Posts:
- Show all terms of a custom taxonomy?
- Get used terms by an author as array of strings
- WP_Query use for a filter with multiple Taxonomies and Terms
- get_the_terms – only top level
- get_terms orderby numeric
- Query all posts of a custom taxonomy term
- get_term_link() returns incorrect url
- Can I prevent the user from adding more than two levels deep of terms inside of a taxonomy metabox?
- Why my filterable portfolio page work not perfectly between slug button and slug output WORDRPESS?
- How to get original custom taxonomy slug after the slug has been rewritten?
- How to get post’s current parent term ID?
- Copy taxonomy terms from one post to another programmatically
- How to filter custom taxonomy term name, slug, and description?
- Hierarchical taxonomy list with modificated term links
- Exclude product attributes from taxonomy terms loop
- Create a a form for custom taxonomy terms
- WordPress custom taxonomy
- How to break up php code to avoid echo
- PHP displaying wrong custom taxonomy images
- How to retrieve taxonomy Metabox fields in frontend
- how to display child terms with parent terms in custom taxonomy?
- Pass custom value to custom taxonomy
- WordPress different custom tag being displayed in on tag list
- Grab posts by multiple categories
- Displaying custom taxonomy on WooCommerce product page
- How to split links generated into an xml sitemap to avoid exceeding 30 sec maximum execution time?
- Get term siblings of current child taxonomy
- Insert term and child term from frontend
- multiple taxonomy select display only one in front end
- Display parent and child taxonomies in separate drop down select fields
- How to show only subcategories in parent category not parent category?
- need help with existing code showing subpages
- Custom field values to taxonomy terms
- Pull Tags But Not as Links
- List taxonomy term slugs within shortcode (do_shortcode)
- Include Parent Term in wp_list_categories
- How can I access string value in an array?
- Limit Taxonomy Output in Conditional Statement
- Get all categories post is not in
- How can I display a div ONLY if it is not a certain term page
- Getting taxonomy images to display on single-post with their terms
- Hide image if taxonomy term is empty
- Isotope Drop Down Categories Filter Function
- working with term_relationships table
- Ajax filter button display all posts
- Use get() method to grab all categories and output inside another method
- Advice on creating a WP Archive Template with Custom Taxonomy (get_term_meta)
- Show the section only if custom taxonomy was chosen
- How to insert wp_users ->user login name to wp_terms when a new user registering?
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- Listing titles and custom fields of entries within subcategories
- fetch woocommerce product with custom taxonomy
- Storing content into a custom taxonomy
- Commas not displaying in implode
- Creating a Category Taxonomy
- Check in which custom taxonomy belongs and change the style
- making php value numeric
- Woocommerce getting top level category parent and make all sub categories have the same template and menu
- Taxonomy term description with style, only if the description exists?
- Trying to display terms from custom taxonomy within function
- WordPress: Displaying all the post tags from within a specific taxonomy’s term
- how to insert content into my taxonomy
- Woocommerce Custom Meta Boxes- How to only display if they actually have content
- Hi need update in my terms for other taxonomy
- How to change the author box selection on a post to a custom taxonomy
- WordPress: Export/Import Yoast meta title & description to custom taxonomy
- WP_Query – How to query all of post types categories
- Show related products by attribute based and certain conditions
- Display acf taxonomy attachment
- How to hide a child category and show his parent category
- How do I edit the terms output args or array data?
- Get taxonomy terms that share a common object property
- update_term_meta() only updating once on certain meta keys
- How to update posts’ custom taxonomy selection?
- WP custom posts: filter results to custom taxonomy tag that corresponds to user meta field
- ACF Taxonomy field values not select in backend
- How to add Text before my Custom Term and hide it when empty
- Categories does not show Block editor WordPress
- ACF – Can’t get custom post type by taxonomy
- Create category after theme setup and modify the default one
- custom taxonomies not working
- Filtering custom posts by using checkboxes for taxonomy in an ajax loop always gives server 500 error
- How to separate the taxonomies list from the form so that editing taxonmies is the same as pages and posts?
- WordPress search query, how to modify the sql
- $_GET[‘title’] in WordPress
- wp_set_object_terms returns 500 error when called through AJAX function
- Editing the term_order field
- Using Sprit-sheet on WordPress categories
- Add Custom Taxonomy into Script
- How to insert text into post based on category – via single.php file
- Get Posts by Custom Taxonomy on Custom Post
- New term taxonomy and description in front page. Input’s
- Add active class to foundation 6 tabs while looping categories
- str_replace not preserving whitespace
- How to replace hard-coded list of custom taxonomy terms based on custom field query [closed]
- WordPress using get_term to retreive slug not working as expected
- enumerating custom taxonomies?
- How to display terms from two taxonomies in one php code?
- Custom Taxonomy Link Text Echo Name Not Slug
- Custom Taxonomy as Link