genotype
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: bubbling up from child theme to parentIs this just a simple matter of copying the images directory from the parent to the child?
Sorry, I meant
get_stylesheet_directory_uri()above, not urlMan, I’m not paying attention. The URL I pasted above should have been http://ww.wp.xz.cn/support/topic/plugin-basic-google-maps-placemarks-front-end-placemark-post-submission?replies=3
Oops, I just realized what you meant by the Add Placemark screen, I didn’t see that earlier. I suppose I could try associating my post meta with the Placemark post type upon creation. I’m in a similar situation as the person from this forum message: http://ww.wp.xz.cn/support/topic/plugin-basic-google-maps-placemarks-using-bgmp-map-in-a-template-file-with-do_shortcode?replies=2
Damn, that’s what I was trying to avoid. I’d like to have the marker placed dynamically based on a post field rather than have to hardcode it (as it were) in the admin. Oh well.
Thanks for your help.
Sorry for the confusion, and thanks for getting back to me.
In my functions.php I have:
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]In my category template, the page I’m trying to display the map on, single-my-template.php:
<div id="sidebar-page"> <?php $loc = get_post_meta($post->ID, '_deal_location', true);//returns "Hawaii", based on a front-end form field echo do_shortcode('[bgmp-map]'); ?> </div>I tried concatenating the $loc variable into the do_shortcode but that didn’t work. How do I get the map to either center or place a marker based on a post meta field?
Thanks!
Forum: Fixing WordPress
In reply to: Drop down menus stopped working on home pageFigured it out. In trying to get some Buddypress member data one of my template codes wasn’t returning any data. This wound up borking the main menu drop down functionality and removed the footer from the home page.
Forum: Fixing WordPress
In reply to: Drop down menus stopped working on home pageAnd the footer is missing…