mskeim
Forum Replies Created
-
In this case I use “PHP Code for posts” to place a “php” shortcode direcly on the search/event-manager site (the one with CONTENTS):
Since we only need the category i only pass category, and the near distance, but you can add every parameter from the search request (most of the search parameters are the same as the shortcode parameters):
<?php
if(empty($_REQUEST)){
$map = do_shortcode(“[locations_map category=’0′ width=’100%’]”);
}else{
$arg = $_REQUEST;
$map = do_shortcode(“[locations_map category=”.$arg[‘category’].” scope=’future’ near=”.$arg[‘near’].” near_distance=”.$arg[‘near_distance’].” width=’100%’]”);
}
echo $map;
?>Hi there,
i did it with a small php script to pass the search paramenters to the [locations_map] shortcode, that will do the work.
Hi,
thank you for your answer.
But 1. will show a map in each eventlisting, i need a map as overview with all events. Like [locations_map category=”xy”] does it. Is there a way to set this up?
2. This is always static, is there a way to pass the search parameters? Like [event_lists category=”#_getCategory”]
Thank you very much for you help!
Regards,
Marc
Forum: Plugins
In reply to: [PHP Code for posts] do_shortcode in PHP CodeFound a way:
just use somtething like this:
$myshortcode = do_shortcode(“[pluginshortcode ….]”);
echo $myshortcode;Forum: Plugins
In reply to: [Multisite Post Duplicator] Update Changes In Posts / PagesHi,
are you planning to implement a override function too? If a page exists with the same name, it would be great if you just can override the page in the target site.
Greetings!