I’m afraid I don’t get the problem. The Loop usually only queries and displays post posts, and no custom posts. If your theme also lists your CPT, then you have to have a look at the query arguments.
Apart from that: When you register_post_type, you have several options to choose from and set.
I would say, you would use the following:
'public' => true,
'exclude_from_search' => true,
'publicly_queryable' => false,
Now your CPT only shows up if it is explicitly queried (as you would do on your Google Maps page, if I got you correctly).
Related Posts:
- How to use classes declared in another plugin?
- Hooking in to plugins
- How to only hook on Single.php after content?
- Handling jQuery Component Collision
- why plugins are loaded prior to pluggables
- How to override normal WordPress search in Buddypress? [closed]
- Jetpack plugin (ShareDaddy): Prevent share buttons showing on custom post types?
- Shortcode under a Shortcode Multiple times Possible?
- How can I include PHP-Code to my post?
- Woocommerce exclude specific category products from related products [closed]
- Seriously stuck with some custom meta box/plugin stuff
- explanation for activate_plugin function in wordpress core
- How to Build a Movie Library in WordPress 3.x
- Intercept comment form submit/list by hook/filter
- How many security plugins are too many? [closed]
- Creating WordPress Plugin solely for Admin panel with dash menu and submenus
- Creating an Exit Confirmation Popup
- How to prevent action in ajax request, when in admin side?
- Suspicious google tag manager
- How can I process xml file on upload?
- Permission Check for REST API Endpoint Runs Twice?
- Can I delete plugin files using FTP?
- Reposition Woocommerce Message
- After activating a Plugin, /wp-admin is no longer accessible
- Get all categories of custom post even not assigned
- Possible to add a language file to a plugin without adding .po/.mo files to plugin directory?
- Plugin not appearing after uploading it via FTP
- How to import my YouTube channel into WordPress?
- How get a value from a plugin into another plugin through action/filter
- Exclude post by custom meta with pre_get_posts
- CSV file generation failing
- Prevent duplicate records in plugin table
- Theme is Causing Ajax Conflicts for a plugin I cant identify it
- CSV syntax for WP All Import upload without ACF
- Error: Cannot find module ‘../build/Debug/nodegit.node’ [closed]
- Get Time Taken By Each Action Hook in WordPress
- Buidling a translate plugin for wordpress
- Automatic switch to backup database on fail
- Display wordpress post’s in popup?
- Import sql data from a large file when installing plugin
- WooCommerce : Direct Checkout Page [closed]
- Is there a rule for wordpress plugins developers to not do any database changes upon update?
- Can i add custom code in Source, Header from function.php?
- Problem with isset and $_POST
- serverSideRender does not render “preview” html inside Gutenberg block
- add seperate suffix for low price and high price in woocommerce
- Get products list by url key in WordPress Woocommerce [closed]
- is it possible different visitors location to show different informations?
- WordPress plugin database. How to create table for checkbox
- How to know which wordpress plugin is exporting site information to plugin author?
- Hardcode a form in Contact Form 7 [closed]
- Is it save to replace with in WordPress search form
- Create Short code dynamically
- How to make profile page for each user posting on the blog?
- WordPress + Thesis Theme => WPTouch Post Thumbnails don’t work?
- Upgrade not working & themes not supporting
- Is it possible to pin a post in second position from top
- WordPress latest core update conflicting with newspack-newsletter plugin
- Migrating Joomla to WP Pages and Postst not working
- WordPress + python integration
- How to add a “Who’s who” on a wordpress blog post?
- Move plugin pages from dashboard to front-end
- Page last access date
- Get post content inside plugin class method
- If I am not writing a theme, how do I add custom fields to a user for a plugin
- Python in WordPress – A “Hello World” implementation
- Creating new option (add_option) from AJAX – Settings API
- Is it possible to save a chart as an image from the Visualizer Plugin
- Is there a way to analyze the load time of the functions in a custom plugin?
- Update Plugin Without Overwriting Custom Settings
- How does WordPress know where the plugins are located?
- Need help integrating plugin into theme
- twitter widget loads properly in all themes except my own theme?
- wp_update_post function ignores HTML tags
- Where does the code to add a lightbox effect go?
- How to select featured images for 1500 posts?
- using .htaccess only for wordpress security no plugins
- First argument is expected to be a valid callback for cp_admin_init and _canonical_charset
- Get the url of attachments from the post?
- Doing action based on input from options menu
- Images not showing and plugins not installing on wordpress server move
- WordPress User Frontend Editing Custom Fields
- W3 Total Cache and IIS7 not doing much [closed]
- Mystery URL http://#/ Listed in XML Sitemap Created by WordPress SEO by Yoast Plugin
- “The Events Calendar” Issues in WP 3.2
- What are the downsides of using bootstrap in plugin development?
- How ACF Advanced Custom Field works with Woocommerce Single Product [closed]
- Function mb_strlen Fail [closed]
- Images get uploaded itself from the computer
- getPost() method and Pagination
- How to Allow Users to Select Recipients In a WordPress Comment section?
- Product customizing quiz – quiz adding products to the cart
- How to change all the urls of the WordPress site?
- show_admin_bar filter not called inside plugin class
- WordPress 6.3 headers already sent error
- Create a custom taxonomy’s term form
- How to Display News in a Timeline with Headline, Category, and Time?
- How can I access uploaded file submitted via Forminator? [closed]
- Parse error : syntax error, unexpected ‘)’ in
- Lost Password of my site, how to reset wordpress password?