By analysis, your code maybe you should try
- Flush permalinks (This may solve this issue) because when we create custom post type in WordPress we should use
flush_rewrite_rules()
or manually update permalinks.
Hope it will solve this issue.
Related Posts:
- How Do I Protect My Premium WordPress App Theme from Copying?
- When to use _e and __ for the translation?
- With WordPress themes, where do I store the images and files relatively?
- Should `get_template_directory_uri()` be escaped?
- How to Include SVG sprites icons into the body tag? [closed]
- Why doesn’t /2013/01/ properly return January’s archives in archive.php?
- Excess White Space Above Admin Bar on Frontend Using Twitter Bootstrap
- Child Theme not loading parent CSS
- How to disable 3.1 “Admin Bar” via script for the admin user?
- WordPress settings API error when checkbox unchecked
- How the WordPress sidebar works
- two tinyMCE editors in the same page
- Separated Comment from Post
- index.php is not loaded for single posts
- WordPress website loads but is not displayed until page scrolled
- wp_head() not inserting the default stylesheet style.css
- Theme Customizer not loading
- WordPress Customizer Control with React
- File Security Check in wordpress in index.php of theme
- how to implement wp_is_mobile on themes?
- Where is definied the theme location for the main menu in a WordPress template?
- How to disable automatic colors in the Twenty Twenty theme?
- Check if user has enrolled in Sensei LMS Course on Lesson Page
- Is my approach to enqueue styles inefficient?
- Part of Menu Item Hidden on Header Menu
- Child theme style.css versioning
- Disable front-page.php template
- Gutenberg – editor-font-sizes in functions not working
- Same ACF on two different pages
- How do the default themes reference style.css?
- 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?
- Which file handles the block latest posts, I want to examine excerpt handling
- Should we use ob_start() in WordPress short code
- Menu item added in wp_nav_menu_items filter is never highlighted
- Default string not appearing want to translate
- Using a page as home, how do I prevent nav from setting both home and page links active?
- Warning: A non-numeric value encountered in theme functions.php
- How can I ping update-core.php with a script?
- “Add A Widget” button in the Customizer
- loading blank white screen of slide
- Child Theme’s style.css not loading in mobile browser
- Set parent theme language with custom .mo files
- Change template if tag selected
- Overide enqueue in non plugable function via child theme
- Broken theme, template is missing
- WordPress page/blog incorporated into static website
- How to order by multiple date meta_values?
- How to reverse engineer the Twenty Eleven background image uploader?
- Theme Development -> Specific Homepage
- WordPress Theme With Modified View
- How to safely return the HTML?
- Issue on Accessing To Ajax Enqeued File to Pass to URL for Ajax Call
- jQuery from parent theme loaded with many other scripts in a single min.js file
- Javascript development in Custom Themes
- Custom jquery not code not working in wordpress
- Menu dispareing when visititing current page [closed]
- Customize Option Framework
- Under theme folder, what’s sequence of action for index.php, page.php, single.php?
- Allow filtering of loops for all categories
- Hide/disable sidebar using shortcode?
- Where are the options “template” and “current_theme” derived from
- What Can I do To Achieve this Effect: WIP -> Portfolio
- Trying to link to a php template file but its blank
- A Reviews Page is Showing root Index.php instead of Template-Page
- Twentytwenty theme p-tags break em- and strong-tags that span several paragraphs
- Is_single not working properly in genesis
- WordPress link to another page in site does not render a
- Developing WordPress site behind a static site
- Code showing in wordpress post titles around website
- register_theme_directory() sees custom themes directory, but blank frontend
- Add multiple sections, settings and controls at once to the Customizer
- Font not loading [closed]
- How to change parent permalink?
- how to call options on front end and add logo
- Jetpack Infinite Scroll Not Working
- After WP 4.6.1 Update , Blog page started giving 500 error
- Editable screenshot.png in a custom theme developed
- How to create multiple pages in a client theme?
- How to share posts (and plugins) between existing site and new, separate dev/test installation?
- get_theme_mod not pulling css colors into header using wp_head
- Duplicate WordPress site to subdirectory but use same db?
- Menu order of parent menu from perspective of child menu
- Conditional loop based on current page
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- wp_deregister_script was called incorrectly
- Theme options not displaying correctly after theme update
- Undefined index: debuging error for theme option template snippet
- Multiple Content Shortcodes
- Add the ability of changing background color of a theme [closed]
- How to use esc_attr__() function properly to translate a variable that contains string?
- What to do when child theme is out of date with parent theme
- Permalinks problem with custom theme
- Purchased Theme to Custom Made Theme? [closed]
- How to make website with many template that active [closed]
- Query for tag given slug
- Image Size wrong during upload
- Is there any halfway decent documentation on the wp.media JS class?