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?
- Is child-theme required when modyfing “Appearence > Editor”?
- How to Add Dynamic Sliders to WordPress Customizer with JavaScript
- Is there any way to register custom background images like header images?
- How to change the theme directory uri for localhost?
- Set a featured image as a replacement to the header image
- Is it possible to have a theme that uses only one single page?
- Custom theme: How to call archive-post.php for viewing blog posts
- WordPress Customizer Default Image
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- underscores use of the article element on the page template
- How to transfer one domain to another domain without losing theme options (customizer)?
- Plugin does not work in custom theme
- How to Have a Pure HTML Sub Directory In WP Site
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- Create a child theme from multiple themes
- Theme not showing up
- html5-reset theme does not show the image [closed]
- Managing WordPress Theme
- Theming Using Bootstrap Glyphicons and WordPress Dashicons
- Why in the static pages of my theme are showing these information?
- featured content: which area does this cover [closed]
- Change image size depending on page
- WordPress page/blog incorporated into static website
- Random white space before doctype
- Adding a gallery to my first theme
- Is there a WordPress boolean for “theme_customizer_active()”?
- How to add menù section to my WordPress template?
- Are seven additional image sizes are too many?
- What are the critical theme files when building a custom theme?
- Having issue with WordPress wp_enqueue_style
- How can I use the WordPress Loop and Pagination in multiple instances but different scenarios throughout my site?
- Starting point for custom Themes [closed]
- How can I hard code my sidebar?
- What exactly is “wordpress theming”? [closed]
- Simple child theme modification but links are broken
- Theme Development -> Specific Homepage
- Making a WordPress theme based on twentyten
- Thesis -style Navigation
- Can I make a Customizer dropdown-pages list include private pages?
- How to allow certain PHP functions when using sanitize_callback in the word press customizer
- registering a global template wordpress 6.0
- How can I wrap all blog posts image with
- theme style is applied on the dhasboard rather than the website
- Customizer Color Control Not Working
- Copying the theme style files and images to duplicate the website but with a difference
- where is real values of variables?
- Why still output /wp-content/themes/twentynineteen?
- How to allow users to create their own website within my domain? [closed]
- How to get category lists by name or slug
- I have WordPress setup on primary domain, how do I set it up on its subdomain using the same database?
- Which cache is kicking
- Doing context-aware previews in the WordPress Customizer
- Theme Action to hook for one time only function [duplicate]
- Avada Child Theme Development
- Questions from a new WP Dev [closed]
- What $handle does WordPress use for a theme’s implicit style.css?
- searchform.php doesn’t work properly
- Issue when posting updates/changes to wordress
- Adding a new setting using Kirki or WP customizer with an if statement
- Theme customizer – can’t add section/settings
- Create something that can be added or removed in Customizer