$term_id = get_query_var('cat'); // the current category ID
$my_fields = get_option('my_category_fields_option');
echo $my_fields[$term_id]['my_title']; // the title corresponding to the current category
(assuming you’re talking about Any examples of adding custom fields to the category editor?)
Related Posts:
- Where to store plugin settings fields
- How can I add an option to the Page Template list from a Plugin?
- What’s the best method for emptying an option created with the Settings API?
- template_include (overriding default plugin templates via current theme)
- Using composer for dependency management in plugindevelopment
- What is nonce and how to use it with Ajax in WordPress? [duplicate]
- Update exisiting site to 3.5 release candidate
- Why does do_action pass a blank string as the first parameter if no $arg is set?
- Build path for a custom portfolio plugin
- How to save block attributes when the output doesn’t change
- How to add a link to WordPress Plugin install Listing
- How to ensure “the_content” filter runs only for the main displayed content?
- Get file headers in custom file
- Hourly WP schedule, do I need at least 1 visitor hourly?
- wp_query (and post_id) is empty in admin_init
- When to check if a function exists
- Utilize TinyMCE hyperlink chooser outside of TinyMCE
- add_theme_support using a plugin
- get all products of one category
- Settings API – Undefined Index when unchecking checkbox
- Really simple query giving error in SQL syntax
- Can’t echo get_delete_post_link
- Why is my shortcode not working
- Creating option to allow user to select the page my plugin content will display on
- Is there a naming convention for database tables created by a plugin?
- WordPress plugin options and jQuery
- Inserting JS snippet in the footer if there is no wp_footer?
- Can I differentiate between “Delete Post Permanently” and “Empty Trash” and do something for each accordingly?
- Use php libarary in wordpress plugins
- How do I add a javascript file to all admin pages via a plugin?
- unable to stop loop when using wp_insert_post with publish_post hook
- How to add a secondary button to a settings page with a custom action?
- Plugin options page – form with two different submit buttons
- Show Parent category and Subcategory
- Frontend Ajax call not working using wp_ajax, wp_enqueue_script and wp_localize_script
- How to update an existing table while updating plugin?
- Some strings from a .mo file do not load
- Add a row on clicking each post featured image
- How can I gracefully escape an error condition?
- best practice for query string values – get_query_var always empty for my value supplied in query string
- update post meta for checkbox in the admin when inserted in the front-end
- Plugin development: can’t update settings with multiple settings sections
- How to implement filesystem cache in WordPress
- Check for template part, else filter content
- How can I add a custom “Text” widget to Appearance manager from functions.php?
- Filtering SelectControl items according the input from another SelectControl in Gutenberg Block (ES5, no JSX)
- what are the checksums surrounding keywords in the SQL generated by WP_Query and do I need to use them too?
- Is it possible to make sure that only my plugins output is shown to the enduser?
- How to do POST request with WP REST API v2 to custom table?
- Plugin generated virtual pages
- add javascript files only when plugin is called?
- wp_dropdown_roles() to replace option value = code
- Determining URIs for plugin pages
- Filter Categories widget to allow custom sorting?
- Make a plugin page out of influence of the theme’s style
- Custom Rest Endpoint: Post/Put/Patch not working
- plugin_dir_path wrong url
- 400 Bad Request, in wordpress theme development, wp_ajax
- How to allow only two (or more) users access to a plugin
- Return Value of load_plugin_textdomain
- Admin Subpages without Menu entry
- Special Formatting for WordPress Plugin Description?
- Multiple array for post_content on plugin activation
- Check if the current user is author of first comment
- custom wp_editor does not save the content in plugin settings
- Plugin Development – Get Admin Url (Including cases where wp-admin is not used)
- Add code to template dynamically
- How Can I Add Code To A Preexisting Function Without Editing it
- Creating posts with links from a txt file
- Change the behaviour of a button
- Login page too many redirects
- Configuring Xdebug with docker compose
- escape html in jQuery for WordPress
- Progress bar in plugin within admin
- Jquery php request is returning a weird result
- Detect if requested page is PWA on server side
- WordPress admin panel not working
- Redirection from a specific page for users logged in but not with membership
- Load script on frontend from widget plugin
- Can’t get wpColorPicker to work in a widget
- Get the current post/page URL with plain permalinks
- Allow user to add the php code in wp_mail()
- ajax multiple Values
- Plugin setting page – update_option problem
- WordPress Plugin Update Process
- Ajax functionality not being called under wordpress plugin
- Registration form Plugin… Email confirmation
- Add a description/hint field in the admin page of a plugin
- How to display posts list on my plugin page?
- Saving multiple fields as array
- Serialized Data
- Can’t add images in wordpress to my page – button isn’t clickable
- Gutenberg and custom blocks messed up pagespeed score. What did I wrong?
- Gutenberg text field validation
- I don’t understand how symlinks in plugin work
- Undo operation not working in Rich text [Gutenberg]
- get the queried_object of an url
- Advanced Custom Fields conflicting with custom plugin when saving custom field
- plugabble wp_authenticate function not works from wp-login.php
- How to get recent one post from each category on home page?