Try like
$args = array(
'hide_empty' => 1,
'exclude' =>array(1,2,3) // desire id
);
$categories = get_categories($args );
Hope it will help!
Related Posts:
- Add a dropdown to theme customizer
- Theme Customizer : how to create multiple-level panel
- Allow Shortcode in Theme Customizer
- Editing the custom background CSS
- Is the theme customizer slowing down my site?
- How do I get a parent theme modification from a child theme?
- “Display Site Title and Tagline” checkbox not working?
- How to set page template on front using starter content?
- How i can get widgets areas working in customizer?
- How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?
- How to disable automatic colors in the Twenty Twenty theme?
- WordPress not registering Theme Customization Section
- WP_Customize_Color_Control omitting # symbol
- get_option in header.php not returning value from customizer
- Internal error 500 accessing Theme > Customize
- Edit footer via customizer
- Folder name for a pro version of a WordPress.org theme?
- Customizer: save setting/control content to post/page
- Is accessing theme and using customizer GPL distribution?
- How to enqueue javascript for WP Customize options sidebar?
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Theme Customizer not displaying saved values in wp_head (CSS)
- How to set Post meta-box defaults based on the choices made by user in Customizer?
- Alignment Problem [closed]
- Customizer: get_preview_url() inside customize_save_after hook
- List categories of a post hierarchically?
- Let user to upload multiple time
- How to copy page/post from one theme to another?
- How to change listing type permlink?
- Customizer API Multi Sections in single Panel
- (Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme
- How do I remove header/page-title image in farvis theme? [closed]
- Is there a way to create sections under “Colors” panel in the Theme Customizer?
- Correct was to customise theme using get_theme_mod in scripts
- Using Customizer value in an external PHP file inside a theme
- “No Data Received” error in Chrome every time i try to update the theme functions file
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- How to show associated fields if checkbox is checked in customize widget screen using wp_customize?
- Get entered value of customiser field for live preview
- Should `get_template_directory_uri()` be escaped?
- How To Add New Option Types To Option Tree?
- Trigger Customizer saving process with Javascript only
- Child Theme not loading parent CSS
- Where do I find the functions triggered within a hook?
- One button to change all settings in theme customizer?
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- Is it possible to display the admin bar while in the Theme Customizer?
- Removing the default sidebar from admin panel
- How to Change CSS Variable value in Theme Customizer Live Preview
- how to pull wordpress post comments to a external page
- index.php is not loaded for single posts
- WordPress website loads but is not displayed until page scrolled
- Theme Customizer not loading
- WordPress Customizer Control with React
- Is it a good idea to make whole theme widgetized?
- Where is definied the theme location for the main menu in a WordPress template?
- Gutenberg – editor-font-sizes in functions not working
- Cannot figure out how to overwrite files in child theme
- Input ordering in wordpress theme customizer
- Customize the previous_post_link output
- How to use get_template_part instead of include_once?
- How to remove comment link title attribute?
- wp-cli: For development, how can I activate a theme that is on the local disk but not zipped?
- My Admin bar covers my sticky navbar [closed]
- How to show post from category select
- Single Page Design, Storing in Theme Options
- How do i make a custom section’s setting display the default value in Customizer?
- “Add A Widget” button in the Customizer
- loading blank white screen of slide
- Child Theme’s style.css not loading in mobile browser
- How to Find the Page the Front Page is Using?
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- 3 Level Deep Navigation Menu Not Showing All Levels
- How to Have a Pure HTML Sub Directory In WP Site
- WordPress page/blog incorporated into static website
- Random white space before doctype
- How to add menù section to my WordPress template?
- What are the critical theme files when building a custom theme?
- Theme Development -> Specific Homepage
- Create something that can be added or removed in Customizer
- How add built-in textarea in theme development?
- Customize Option Framework
- Filter didn’t work on content class (hybrid_post_attributes)
- Trying to link to a php template file but its blank
- Theme author.php transfer
- Image cropping isn’t working correctly when using Offload Media
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- register_theme_directory() sees custom themes directory, but blank frontend
- Add multiple sections, settings and controls at once to the Customizer
- Editable screenshot.png in a custom theme developed
- How to create multiple pages in a client theme?
- get_theme_mod not pulling css colors into header using wp_head
- Import from HubSpot COS into WordPress 4?
- Using wp_enqueue_script with social media buttons?
- Purchased Theme to Custom Made Theme? [closed]
- How to make website with many template that active [closed]
- Image Size wrong during upload
- How to create full header but keep content narrow
- How do I send out an update for my custom wordpress theme?