steighne
Forum Replies Created
-
Forum: Plugins
In reply to: [Web Stories] Error generating the web story…server misconfiguration?Hi @adamdunnage thank you very much for the reply.
We have come to the conclusion that the problem was in the memory_limit in php.ini (which was set to 64M and raised to 256M).
The issue occurred on the front end (when loading the preview or story). Only once did the problem lead to the editor reloading after a few seconds. It also seemed to throw an error in the checklist that the story may not be compatible with Google. After raising the memory limit, those issues have disappeared.
I hope this is helpful for future users and as you develop.
Again thanks for taking a look and the time.
RichardForum: Plugins
In reply to: [CodePeople Post Map for Google Maps] Map Marker based on Tax or Cat@codepeople Thanks for all of your time (and the update!).
Love the plugin 🙂Forum: Plugins
In reply to: [CodePeople Post Map for Google Maps] Map Marker based on Tax or CatHi @codepeople
Brilliant. That works like a charm. You’re a legend. Managed to get this to workfunction edit_point($point) { if(has_term('MyTermA','MyTax',($point['post_id'])) || has_term('MyTermB','MyTax',($point['post_id']))) { $point['icon']= get_stylesheet_directory_uri() . '/images/icons/IconFoo.png'; } elseif(has_term('MyTermB','MyTax',($point['post_id']))) { $point['icon']= get_stylesheet_directory_uri() . '/images/icons/IconBar.png'; } else { $point['icon']= get_stylesheet_directory_uri() . '/images/icons/default.png'; } return $point; } add_filter('cpm-point', 'edit_point', 10);Forum: Plugins
In reply to: [CodePeople Post Map for Google Maps] Map Marker based on Tax or CatHi @codepeople
Thank you so much for your time. I appreciate your time and consideration for adding that feature to a future update.
Best wishesForum: Plugins
In reply to: [CodePeople Post Map for Google Maps] Map Marker based on Tax or CatHi @codepeople ,
Yes, that works for creating an image within the location’s bubble.
I’m not looking for that. I’m looking to change the ICON (aka marker)–the little arrow that points to the spot on the map, NOT the associated image–based on the category.
I hope I’ve made that distinction clear.
RichardForum: Plugins
In reply to: [CodePeople Post Map for Google Maps] Map Marker based on Tax or CatHi there,
Thanks for that. I’ve updated to the paid version I bought (version 5.0.64).The function you have mentioned only updates the image associated with a particular link. I am looking for a way to filter the marker (ie the map icon) such that all posts from CatA have iconA, CatB have iconB…and so on.
Basically looking to remove the choice for a client when they add a new post.Thanks for your time so far.
Forum: Plugins
In reply to: [CodePeople Post Map for Google Maps] Map Marker based on Tax or CatHi @codepeople thanks again for the reply.
I show 2 different versions
On the plugins page: Version 5.0.64
On the “view details” window: 1.0.38- This reply was modified 4 years, 11 months ago by steighne.
Forum: Plugins
In reply to: [CodePeople Post Map for Google Maps] Map Marker based on Tax or CatThanks for the reply 🙂
We are not using a caching plugin, so changes take effect straight away.
The code is inserted on the front page of richardsteighner.com/slowfoodsandbox
as such:
[codepeople-post-map mousewheel="0" cat="-1" height="300" zoom="1" legend="project_category,dish" legend_class="recipe-map-legend" ]
Kind regards,
RichardPS
my code is currently living in the functions.php file of a child theme.- This reply was modified 4 years, 11 months ago by steighne.
Forum: Plugins
In reply to: [CodePeople Post Map for Google Maps] Map Marker based on Tax or CatOk thanks for your help. I have read this on your site and tried it multiple ways. It doesn’t seem to be doing anything…
function point_image($url, $post_id)
{
return ‘https://www.yourwebsite.com/path-to-the-image/image.jpg’;
}
add_filter(‘cpm-point-image’, ‘point_image’, 10, 2);Forum: Plugins
In reply to: [CodePeople Post Map for Google Maps] Map Marker based on Tax or CatHi Codepeople,
I’m looking for something like [codepeople-post-map taxonomy=”taxonomyA,taxonomyB” taxonomyA_marker=”url/markerA.png” taxonomyB_marker=”url/markerB.png”]. Your shortcodes attributes do not include this function. Is there a hook or filter that can get this done?
Thanks for the response.
RichardForum: Developing with WordPress
In reply to: Automatically add CPT category as Nav menu sub itemHi Joms, this did the trick. Added a couple things (for anybody else who might want to use this) including grabbing the term_id and appending the classes. I appreciate the help!
Richardadd_filter( 'wp_nav_menu_objects', 'wpg2byt_add_term_parent' ); function wpg2byt_add_term_parent( $items ) { $terms = get_terms( array( 'taxonomy' => 'project', 'hide_empty' => false, ) ); foreach ($terms as $term) { //format its data to be compatible with the filter $link = array ( 'title' => $term->name, 'menu_item_parent' => //id of the parent menu, 'ID' => $term->term_id, 'db_id' => '', 'url' => get_term_link($term), 'classes' => array( 'my-classes' ) ); $items[] = (object) $link; } return $items; }- This reply was modified 5 years, 10 months ago by steighne.