Home › Forums › MapPress Support › add map widget to admin custom post types
Tagged: custom post types
- This topic has 5 replies, 3 voices, and was last updated 8 years, 8 months ago by
Rainmaster.
-
AuthorPosts
-
May 2, 2014 at 11:16 pm #14630
I am adding custom post types to my site. How can I make the MapPress Pro widget available in the admin screen when using a custom post type as I want to add a map just as I can now when using the normal post feature in wp?
May 3, 2014 at 3:14 am #14632Hi, just select the check box for the custom post type on the MapPress settings screen (near the top).
May 3, 2014 at 5:16 am #14633Wow, missed that one. Thanks Chris!
May 31, 2014 at 7:15 am #14770Hi Chris,
Mappress is such a great plugin, thank you so much!
I am using Toolbox custom post types.
I created a type ‘business’ and check the checkbox, as above.
Mappress admin shows and operates perfectly.CRED is Toolbox’s front end page maker that allows to create forms for entering and updating new custom types.
I have created a front end page to create and update businesses but there is no option to add Mappress to the (custom post type) page (as in WP admin area).*Is there possibly a code to add Mappress (editor) to a page, or show on the page if there is one attached; if it is not in WP admin area?
May 31, 2014 at 7:50 am #14771Hi,
The map editor is designed to run only in the admin. You could do this as a workaround:
1. On the frontend let the users just enter their address
2. Create or update a post on the backend for the business. In that post, populate a custom field ‘address’.
3. Configure the MapPress settings to generate a map from field ‘address’This way a map will be generated in the business post when it is created or updated on the backend – not as nice as seeing it immediately, but it may work for you.
June 2, 2014 at 2:21 pm #14779Hi Chris,
Thank you for the great idea!
I set MP to create the map and that works great for me. :0)It uses the default marker but it can be changed at the post admin level at the map save.
If the post (custom) is updated via the update button the map icon goes back to default, no biggie.I went through your instructions very carefully and I am learning a lot from you!
I did use your code for updating the themes function to display map icon by ‘term’ but doesn’t do anything (s0 far).I went to WP site and found info of same code so I know it’s right, I guess it must be in my theme somewhere.
I also could not tweak the POI template at the theme (child) level so I just did that in the Mappress plugin folder which worked great.I am using WP 3.9.1 (WPMU) with Catalyst theme and Dynamik child theme and Toolset ‘Types’ for custom posts, including ‘Views’ ‘Access’ and CRED the front end form editor. All working together with no serious issues.
Anyhow this is my story and hope it helps someone who may be trying to do the same.
I have utilized most WP google map plugins and Mappress is the best.
-
AuthorPosts
- You must be logged in to reply to this topic.