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
- Inserting terms in an Hierarchical Taxonomy
- wp_set_object_terms and arrays
- WP_Query | Help me create a search term with an ‘OR’ relation?
- category not display in word press grammatically
- List all categories but exclude current post category on single post page
- How to create filterable portfolio in WordPress?
- How do I get taxonomy terms by ID in a specific order
- Append a term to WooCommerce product existing product category terms
- Display Post co-authored in Author Page
- Add attribute / custom attribute to product in woocommerce
- How to add custom taxonomy slug in CPT permalink?
- Check if term object is in array
- Show Custom Taxonomy Title
- conditional statement for custom taxonomy
- Get taxonomy terms only of the WP_Query current posts
- Change description on specific WooCommerce product status change
- Rename “Portfolio” slug?
- get_term_link() returns correct – But illogical error-messages disturb
- get a simple array of all of the term names that exist in all taxonomies
- PHP Warning: Attempt to read property “term_id” on bool
- Grab posts by multiple categories
- How to split links generated into an xml sitemap to avoid exceeding 30 sec maximum execution time?
- Insert term and child term from frontend
- Display parent and child taxonomies in separate drop down select fields
- How to show only subcategories in parent category not parent category?
- Pull Tags But Not as Links
- 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
- Hide image if taxonomy term is empty
- Ajax filter button display all posts
- Advice on creating a WP Archive Template with Custom Taxonomy (get_term_meta)
- 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
- Storing content into a custom taxonomy
- Commas not displaying in implode
- Check in which custom taxonomy belongs and change the style
- Taxonomy term description with style, only if the description exists?
- 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
- Display acf taxonomy attachment
- How do I edit the terms output args or array data?
- Get taxonomy terms that share a common object property
- WP custom posts: filter results to custom taxonomy tag that corresponds to user meta field
- ACF Taxonomy field values not select in backend
- Categories does not show Block editor WordPress
- ACF – Can’t get custom post type by taxonomy
- 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
- Add Custom Taxonomy into Script
- Add active class to foundation 6 tabs while looping categories
- enumerating custom taxonomies?
- How to display terms from two taxonomies in one php code?
- Custom Taxonomy Link Text Echo Name Not Slug
- Page 2+ of taxonomy archives does not recognise sort-order from dropdown
- Exclude Custom Post Type from shared Custom Taxonomy
- How to show all of aspecific post type that has taxonomy and a specific term
- Query specific posts per user selections from dropdown menus
- ISOTOPE – Missing/Invalid Arguement Get Terms
- How do I change the Go To Categories link in the term_updated_messages
- Display terms on product page with shotrcode
- Query posts by custom taxonomy slug in WP REST API?
- How can I change the URL via add_rewrite_rule()
- Get category name of current post (CPT UI)
- Three different queries on same page
- I want to show image from custom field image on my custom page template
- How do I organize posts based on their taxonomy?
- WordPress taxonomy and terms question