mortonc
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Multiple layout for postsThank you Peter that is very helpful.
But if I wanted to have a completely different layout all together how would I go about doing that?
Forum: Developing with WordPress
In reply to: Search title variations with custom fieldsThank you very much, I’ll give that a shot
I am also looking for a solution to this problem
Forum: Plugins
In reply to: [WP Favorite Posts] User not foundThink i’ve found the cause.
I had the favorites page as a child to your profile page.
I’ve now removed it as a child and it shows, however I would like it to be a child page and still work. Any ideas of how this can be done?
Forum: Hacks
In reply to: Front end posting overwriting custom meta fieldsSorry to keep bumping but could really do with a little help.
Thanks
Forum: Hacks
In reply to: Front end posting overwriting custom meta fieldsCould anybody help? I would really appreciate it?
Forum: Hacks
In reply to: wp_db get 2 most recent itemsbut how do I then place the results into variables?
Forum: Hacks
In reply to: Front end posting overwriting custom meta fieldsAny thoughts?
Forum: Hacks
In reply to: wp_db get 2 most recent itemsThanks.
Here’s what I’ve currently got
<?php global $wpdb; $heightcm = $wpdb-> get_var("SELECT height FROM group_data WHERE group_id = $group_id ORDER BY rowid DESC LIMIT 0,1" ); // Convert the height to metres and ft $heightm = ($tideheightcm/100); $heightmround = round($tideheightm,1); $heightft = ($tideheightm*3.281); $heightftround = round($tideheightft,1,PHP_ROUND_HALF_DOWN); ?>
I couldn’t get it to order by date for some reason so I’m using row_id which is auto incremented.
So what I would like to be able to do is get the two most recent heights and set them as $heightcm1 and $heightcm2
Another thing that might be really handy is to have the ‘time’ data for each row as well.
Forum: Plugins
In reply to: [Geo Mashup] Map StylingI’ve placed
/** * An example of applying custom styles to a Geo Mashup Google V3 map. * * There's a wizard for making your own style arrays at https://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html **/ GeoMashup.addAction( 'loadedMap', function( properties, map ) { var google_map = map.getMap(); var custom_styles = [{"featureType":"water","stylers":[{"color":"#46bcec"},{"visibility":"on"}]},{"featureType":"landscape","stylers":[{"color":"#f2f2f2"}]},{"featureType":"road","stylers":[{"saturation":-100},{"lightness":45}]},{"featureType":"road.highway","stylers":[{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"labels.text.fill","stylers":[{"color":"#444444"}]},{"featureType":"transit","stylers":[{"visibility":"off"}]},{"featureType":"poi","stylers":[{"visibility":"off"}]}]; var map_type = new google.maps.StyledMapType( custom_styles, { name: 'custom' } ); google_map.mapTypes.set( 'custom', map_type ); google_map.setMapTypeId( 'custom' ); } );
in map-style.css in my theme’s file but that doesn’t seem to work
Forum: Plugins
In reply to: [Geo Mashup] Map StylingThanks,
Where should that code be placed?
Forum: Themes and Templates
In reply to: Add a button to send an emailHere’s a walkthrough:
- Steve is logged in and visits this page.
- Steve clicks the button
- An email is then sent to an email address which is associated with this specific page (in a custom field), the subject will be preset, the from address will come from the current user’s profile and email text can be something like “you’ve been mailed by Steve who has 12 points” , this value of 12 is set as a custom field in their profile.
- Steve then sees a success or error message
Forum: Plugins
In reply to: [WordPress Related Posts] Pull from custom post typeThis is the same problem that I am having.
Please help.
Thanks
Forum: Plugins
In reply to: [WordPress Related Posts] Not displaying on custom post typesI would also like this help
Forum: Plugins
In reply to: [WordPress Related Posts] Not displaying on custom post typesI would also like this help