I am working on a plugin which creates a custom post type. The custom post type generates a google map, and plots the location specified in the post of the CPT on to a google map.
I'd like to remove this CPT from displaying
the_title(); etc. in the regular loop.
Since the post type I've created has the ability for the user to click the pin on the map to display
the_content(); there is no need to have this information displayed in regular text format on the page, like a regular post type would look.
Is there a solution that will eliminate this post type from the loop on the page templates of any theme that I can use in my plugin code?
Edit: I have constructed a shortcode, that can display the CPT map on any page. Inside the shortcode it loops through each post of the CPT to get its location and plot it on the map.
What is happening is, if I insert the short code on any given page, the map works great, but the page is also displaying the title and content of the CPT underneath the map as well. It appears that this is because the page I've posted the short code on is grabbing the loop from within the short code and applying it to the page template of page. This is duplicating content, it is displayed once on the map, and once in the loop of the page template.