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:
- How to Add WYSIWYG Editor (tinyMCE) to plugin options page compatible with WordPress 3.0 and up?
- Install an external plugin within the current plugin
- WooCommerce – Call to undefined function is_woocommerce()
- Twillio How To Send SMS for Custom Post Type
- Upgrading WordPress 4.0 asks for FTP password
- Change the name of an installed plugin
- WP deregister, register and enqueue dequeue
- Is there a way to lock certain pages from being edited by anyone other then the admin?
- WordPress ajax call for not logged in users, doesn’t work
- why in my wordpress admin panel the membership option is not showing
- Add multiple attributes to product from php
- How to show my sidebar in specific page only?
- What Plugin Do You Use to Turn WordPress based site to A Blog Aggregator
- Sanitizing, Validating and Escaping in WordPress (Plugin)
- like to keep reading plugin
- Check if email address exists front end with AJAX in a plugin
- How to review WordPress website php version compatibility?
- Translate database content using __($message) function
- Any way to change the actual filename of an image from media manager?
- Add Extra codes by plugin
- CMB2 Repeatable Group & JSON API
- Edit default comments page in WP Admin
- Does WordPress validate inputs to all functions? (such as get_user_meta and insert_user_meta)
- Admin Theme customization
- wordpress json api not working
- Fetch Children of Grouped Products Inside WooCommerce Product Loop
- Outbound link autometic converted into linkdirect , and not opening
- Run plugins only on certain pages
- WordPress plugin creation how to execute .sql in order to insert multiple rows at activation of plugin
- Problem with PHP wordpress, Undefined index: in C:\xampp\htdocs\wordpress\wp-content\plugins\epoch\classes\core.php on line 190 [closed]
- Contributive page where people logged in can write
- Contact Form 7 Get Image Function [closed]
- How to create a custom shortcode based on the layout?
- Installing plugins and using complex folder structure with child theme in WordPress
- Implementing an image hosting website using WordPress? [closed]
- WP-DownloadManager – Query most download per week/month etc
- How to test ‘upgrader_process_complete’ hook in plugin development?
- How to get path or root of plugin folder, not file or dir?
- How to prevent additional code in functions.php to be removed once there is an update?
- Displayed content disappears when adding attributes to shortcode
- Thesis 2 custom Page
- What is the easiest way to rename a plugin (and also avoid plugin updates)
- Display linked articles at the bottom of post (like related posts)
- register_activation_hook() not working as expected
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Running multiple security plugins
- Opening a JQuery modal window on click of a button with a JQuery plugin
- Is there a way to remove a tooltip of a plugin via custom CSS? [closed]
- Correct Plugin File Path
- strange shortcode error: does shortcodes requires any dependency?
- how to replace hostnames on certain external links?
- Custom PHP Page Using WordPress login
- Create “new pages” within the admin section of plugin
- How to completely hide a WordPress/BuddyPress Install? [closed]
- Facebook ‘Share’ and ‘Like’ on individual posts
- Creating teams of users in WordPress
- Share plugins, themes, and multi post in a multidomain network
- Removing the custom_image_header from wp_head
- Is it safe to use Web Invoice 2.1.0 without SSL?
- WordPress cron job running more than once
- How to properly replace the_content with the html in a php file?
- Is there a way to make [Table Of Content] plugin while not using revision data?
- How to Add text value in Automatically in this conditions?
- How to display emails as a post?
- Elementor: How to design Dropdown Select Box Navigation page like Chegg
- How to access a wordpress plugin page or add posts without doing it from the WordPress dashboard?
- Displaying all the images from all of my articles
- Problem with Date translation in WordPress
- Create new page in wordpress plugin which doesn’t exist
- Use WordPress Plugin without WP head
- install / update plugins remotely
- Why is my site still showing insecure icon even if I have SSL certificate?
- Forum creation with bbpress and front end
- Fatal error when activating my custom wordpress plugin
- Front End Page Not Loading Header Footer
- Media Upload to custom database and Custom Directory
- Nested DIV’s across functions in PHP, do not seem to work
- TinyMCE how to add css when inputing a text
- Add image to post
- get_option return incorrect values
- get recent 12 days post then random in wordpress
- Restore Category Base
- Problems with installing and deleting plugins
- private functions in plugins
- Is it possible Embed flexviewer in wordpress and how?
- Need to change contact email depending where user is from
- How to show an image popup when one clicks on an image thumbnail?
- Add page-link after post content. Before plugin
- What method should I use for a sidebar widget that reads latest posts?
- Share Bar over laps left column [closed]
- Allow a role to edit one specific plugin
- Post curl function save twice using plugin hook function wordpress
- Frontpage Admin Bar Disappeared
- making users able to add their own products wp e-commerce [closed]
- Selling Downloadable Products [closed]
- Need help saving input fields for Security Deposit plugin in WC Vendors page
- Count div with class (.length) only shows 0 [closed]
- wordpress admin-ajax bad request 400
- ACF prugin for WooCommerce Shop Page
- Hidden Elementor sections slow down website. How to fix this? [closed]