If you’re viewing a category or tag archive, you can access that category or tag object via get_queried_object()
$queried_object = get_queried_object();
echo $queried_object->name;
Related Posts:
- Delete tables from database when deleting plugin
- Can I upgrade a plugin to a specific version?
- Get plugin_dir_url() from one level deep within plugin
- How to have WordPress send a user confirmation/validation email on signup
- How do I disable a plugin enforced by my host (in mu-plugins)?
- Do Plugins effect site loading time?
- Adding Featured Image in Post List
- How to place random widgets in the WordPress sidebar?
- Auto login using Active Directory and Windows Authentication
- Should I use RIPS tool to test my themes and plugins?
- Plugin search sorting for admin section – WordPress [duplicate]
- How to disable autocomplete for inputs in contact form 7? [closed]
- Determining where fopen() is writing files when used from WordPress AJAX call [closed]
- How Restrict access to admin dashboard by specific static ip?
- Plugin Functionality Only for Editor and Administrator
- Plugin to hide admin menu (vertical menu bar)
- Creating Custom Roles for use on a WordPress Multi-site Instance?
- Building WordPress Plugin Using FPDF – How do you get post content from currently viewed post?
- Storing Email Account Passwords for SMTP Mailing for a WordPress Plugin
- action-scheduler vs wp-background-processing
- How to get images from EDD post?
- Do you clean up your self-written plugins’ at deactivation?
- Will Flutter work with WordPress 3.0?
- Function to see how many plugins on a site need updating
- PHP Fatal error: Call to undefined function plugin_basename
- Restored WordPress on new Server – Can’t auto-update plugins
- How many SQL queries WP Super Cache make to serve cached page?
- omit / remove ” from category list
- Is any information available in PHP files in WP about plugin activation history?
- Download any file after submitting a form [closed]
- Call to undefined function get_userdata in user.php
- Use flash on a wordpress site as a widget
- AJAX search posts and pages
- (Sticky Row) How do i make a row sticky in wpbakery page builder?
- how to create progress bar in wordpress contact form 7 or other plugin for set progress bar in cf7 [closed]
- remove_section in a plugin
- List the authors that have written posts in a category
- My custom plugin did not create db tables in database
- Theme Custom Pages
- When I try to de-activate any plugin it gives error “Warning: call_user_func_array() [function.call-user-func-array]”
- How to remove js ui library added by default by wordpress
- Proper way to handle admin-ajax calls
- How to find the list of custom post type where logged in user is author
- WordPress Fatal Errors [closed]
- YOAST Seo xmlsitemap menu item not showing in the dashboard [closed]
- Regularity of Checking for plugin updates? [duplicate]
- Possible?? Pull Plugin Property Data to a Theme’s Custom Post Type
- WordPress plugin require_once unexpected
- What hook can I use to modify custom post data before it is displayed on the page?
- reCAPTCHA on page template without plugin
- get current page number with wp_link_pages()
- Is there a way to input different rel=author and rel=publisher attributes for a WP blog w/ multiple authors?
- Plugin is creating posts twice
- Accessing widget information
- Update WordPress Theme System
- How do I reliably find a URL to a script or other file?
- What is the best way to make a custom page from a plugin?
- Searching a tab/space delimited text file based upon form criteria and returning a ‘record’ into a word press results page
- How to validate custom fields in Quick edit/bulk edit?
- Oops! That page can’t be found
- Fixed: Console.log twice in the edit function
- show wc_add notices on particular page in woo commerce custom plugin development
- How to generate expiring URL of the page?
- Redirect to a page while maintaining search query parameters without causing an infinite loop
- Custom Formdata matching with user table
- How to make slider like this in wordpress?
- Showing different js file for different theme in wordpress customizer api
- Code Snippets plugin by Shea
- Function settings_fields() not recognized (Uncaught Error: Call to undefined function settings_fields())
- Why my multisite is this slow? (stats inside)
- Update User Meta Via Ajax
- how to make settings page for woocommerce plugin?
- wordpress plugin page error
- How to use custom footer template in a site-plugin?
- Top authors or top categories by post views?
- Update page (update-core.php) & Plugins page (plugins.php) revert to homepage
- trying to create simple plugin to filter categories from all authors
- Standalone Project Login with WP Login
- Need help getting a certain value out of a multi dimensional array
- Proper Failure of Plugin Activation
- cPanel login from WordPress
- Extend WordPress Search
- WordPress internationalization + domains
- How to list posts that appear in two categories
- Woocommerce Bookings – Resource needs to be allocated for part of the booking duration, not the whole booking
- Load my plugin before cache
- How to get current template file used by WordPress?
- Is it possible to debug plugins with Xcode?
- Plugin link does not appear in my toolbar
- Supersize plugin error in internet explorer 7 and 8 [closed]
- Admin access to WordPress site with installing plugin
- Is there a method or plugin to download my products in WooCommerce?
- Add image before link in woocommerce plugin [closed]
- How to change data format in custom meta box field [closed]
- Why is my activator class adding the files/running the actions I add?
- Trying to Find the PHP File/Function that Handles a Specific Form Action URL
- Newspaper theme, custom query vars, & custom rewrite rules
- How do I resolve “Some required plugins are missing or inactive”?
- WordPress Shipment
- How to add CPT in Elementor pro search template