Is there a way to pull posts ? I am planning to pull all the posts that i created to standard posts to travel map posts
]]>https://www.wpmapspro.com/customer-itinerary-on-map/
1 Register many locations with custom post types
2 user submit Multiple favorites
4 Display favorite place list on My Page after change the order
5 Press the route button to display the itinerary
6 share with friends, or publish on site.
Is such an implementation possible?
]]>How can I change one user of the TravelMap into another.
I tried by uninstalling the plugin but without success.
If you have any questions/requests/suggestions, please contact us through our website: travelmap.net/contact
I’m just seeing the support requests here now because I wasn’t notified by WordPress. But I reply to messages posted on TravelMap every day.
Best,
Clement
Founder of TravelMap
Hi,
I have created a number of travel maps, but I don’t want all of them to be visible/accessible via the TravelMap plugin. I *do* want to include all my travel maps in the listing, but simply want to choose which ones are “published”. I can’t find a way of doing this. Can you please help?
I have a related question which is how can I prevent the drop-down box with list of all my travel maps from being shown? For example, on the travel map included in a post about our trip to Argentina I want to ensure that the reader cannot change to see a different travel map.
Many thanks,
Stefan
Hi Clement,
Thanks for creating TravelMap. I have signed up for a Premium Plus account.
I have included the TravelMap widget to be shown on in the primary zone (left sidebar), but how can I configure the widget to show a different map based on what is shown in the main content panel?
Specifically, on my site (www.aaltenvoogd.com) I have categories for countries and years, and I would like the widget to show a map that relates to the selected category.
I know I can include the map in a post (as I have done in, for example, the post about Argentina in 2001, (www.aaltenvoogd.com/travel/argentina-2001/) and I also know that it is possible to select which map to show via the drop-down list at the top. How can I disable this drop-down list? I would like to the map shown (whether it is in the widget in the sidebar or the map included in a post) to only be the one I have specified.
Many thanks.
Kind regards,
Stefan
]]>Google Chrome 71.0.3578.98 (Official Build)
WordPress 5.03
Description: When adding markers to the map via the search box, a backspace keypress will trigger the “delete” action if a saved spot is already present, displaying an alert box saying, “Are you sure you want to delete this spot?”
Expected behavior: Backspacing should just delete the characters in the search box.
Steps to reproduce:
From the map editing screen:
1) Add a spot via the search bar (top left), and press “save”
2) Begin typing to add a second spot
3) Press backspace to delete a character; character will delete, but also the alert box will pop up
I think I have WordPress version 4.8.3, (latest version) but can’t check as I cannot access my admin page.
I updated the Travelmap plugin today & since then all attempts to access my admin page get the following error message. I think the update was released just today.
Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in /home/content/c/u/p/cuppa500/html/Blog/wp-content/plugins/travelmap-blog/admin/class-travelmap-admin.php on line 103
I have located the file ‘class-travelmap-admin.php’ on my godaddy website
& line 103 reads as follows:
$string .= substr(str_replace([‘/’, ‘+’, ‘=’], ”, base64_encode($bytes)), 0, $size);
I have no idea what a parse or syntax error is, but assume there is something wrong in line 103. It appears I may be able to edit it directly on my host’s site but to do so need to know what to change. Can anyone see what is wrong?
At this stage I would be very happy just to revert to the previous version of the plugin & get my admin page (& map) back again, but if all that is needed is a minor change to line 103 & doing so on my godaddy site would achieve that, that would be fine too.
If editing the line on my Godaddy files site is a bad idea ….. please let me know how else to get my site back asap.
Thank you for your help.
Cuppa.
ps. In case it helps the following is the entire class-travelmap-admin.php file
<?php if ( !defined( ‘ABSPATH’ ) ) { exit; }
define(‘TRAVELMAP_ADMIN_PARTIALS_DIR’, plugin_dir_path( __FILE__ ).’partials/’);
class TravelMap_Admin
{
public function __construct()
{
// Scripts
add_action(‘admin_enqueue_scripts’, array($this, ‘enqueue_admin_scripts’));
// Menu
add_action(‘admin_menu’, array($this, ‘add_admin_menu’), 20);
}
public function enqueue_admin_scripts()
{
wp_enqueue_style(
‘travelmap’, // handle
plugin_dir_url( __FILE__ ).’css/travelmap-admin.css’, // src
null, // dependencies
false, // version
‘all’ // media query
);
}
public function add_admin_menu()
{
if ( !current_user_can(‘manage_options’) ) {
return;
}
add_menu_page(
‘TravelMap’, // Page Title
‘TravelMap’, // Menu Title
‘manage_options’, // Capability
‘travelmap’, // Menu Slug
array($this, ‘admin_page_html’), // Display function,
$this->get_admin_svg_icon(), // Icon
39 // Menu Position
);
}
public function get_admin_svg_icon()
{
$svg = file_get_contents(plugin_dir_path( __FILE__ ).’images/travelmap.svg’);
return ‘data:image/svg+xml;base64,’ . base64_encode($svg);
}
public function admin_page_html()
{
// Remove footer text
add_filter( ‘admin_footer_text’, array($this, ‘clear_admin_footer’) );
// Iframe URL
$iframe_url = $this->get_admin_page_url();
// Template
include( TRAVELMAP_ADMIN_PARTIALS_DIR.’travelmap-admin-page.php’ );
}
public function clear_admin_footer()
{
return ”;
}
public function get_admin_page_url()
{
// User id
$wp_user_id = $this->get_user_id();
// Locale
$locale = get_locale();
if ( $locale )
$locale = substr($locale, 0, 2);
// URL
return TRAVELMAP_WP_URL.’?’.TRAVELMAP_WP_USER_KEY.’=’.$wp_user_id.’&locale=’.$locale;
}
public function get_user_id()
{
$wp_user_id = get_option( TRAVELMAP_WP_USER_KEY );
if ( !$wp_user_id )
{
$wp_user_id = $_SERVER[‘HTTP_HOST’].’-‘.$this->str_random( TRAVELMAP_WP_USER_LENGTH );
add_option( TRAVELMAP_WP_USER_KEY, $wp_user_id );
}
return $wp_user_id;
}
public function str_random($length = 16)
{
$string = ”;
while (($len = strlen($string)) < $length) {
$size = $length – $len;
$bytes = random_bytes($size);
$string .= substr(str_replace([‘/’, ‘+’, ‘=’], ”, base64_encode($bytes)), 0, $size);
}
return $string;
}
}
new TravelMap_Admin();
]]>