gavinsmith
Forum Replies Created
-
Thanks for the response. Any hints as to how I might make it happen? I’m ok with getting dirty, but I’m not sure where to start with this plugin. Any suggestions are appreciated!
Forum: Plugins
In reply to: [Plugin: User Bio Widget] dropdown not showing authors listNot perfect, but it works (won’t limit user levels in the drop down, so every single registered user will show):
Change line 98 of
user-bio-widget.php
to:$simple_authors_query = $wpdb->get_results($wpdb->prepare("SELECT distinct ID,display_name FROM wp_users,wp_usermeta"));
(remove everything from the
WHERE
and after in the query)Forum: Fixing WordPress
In reply to: Custom post type information disappearingHere’s an example of a save_post action where this is fixed (as far as I can tell):
add_action('save_post', 'save_book'); function save_book(){ $custom_meta_fields = array( 'book_author','book_publisher','book_amazon_link','book_borders_link','book_chapters_link' ); foreach( $custom_meta_fields as $custom_meta_field ): if(isset($_POST[$custom_meta_field]) && $_POST[$custom_meta_field] != ""): update_post_meta($post->ID, $custom_meta_field, $_POST[$custom_meta_field]); endif; endforeach; }
Forum: Plugins
In reply to: Modifying wp_list_pages to include <a> classActually, fixed it – wrapped the in <span> tags.
Forum: Plugins
In reply to: Display first child page when children existThanks, esmi! So the logic I would need to assemble would be along these lines:
if page has children
— display first child
else
–display page contents
end ifThat seems right, I think. I’ll try to assemble something like this using the get_page_children function, I’ll post any findings!
Thanks,
GavinForum: Plugins
In reply to: [Plugin: Contact Form 7] Moving the admin menu itemSorry for the late reply – I wish there were email notifications.
Thank you very much!
Forum: Themes and Templates
In reply to: Display Username.This should do it:
<?php echo $current_user->user_login; ?>
Forum: Themes and Templates
In reply to: Me moaning about wp_headI agree, these things bother me too, especially the CSS issue – for permanent plugin installations, sometimes I’ll dig into the plugin and remove the CSS references and the CSS file, sticking it into my template file and editing it as I see fit from there. This does mean plugin updates are a pain though, I don’t really have a happy medium.
Forum: Plugins
In reply to: [Plugin: Appointments Scheduler] WordPress 2.7.1The page lists compatibility to 2.6.2, so that would probably explain any issues. Shame, because I too was looking to put this on 2.7.1.
Forum: Fixing WordPress
In reply to: Developed on MySQL 5, production server runs 4I got about half way through trying to restore all of my settings/categories.posts/pages manually, but I’ve run into an issue… I could explain it, but really what it comes down to is I need to try to downgrade the database. There are issues with IDs all over the place now and if I want the remote to match up with the local for testing, it’s going to take far too much time to work out the conversions mentally (specifically in the way categories are assigned numbers throughout the database and I can’t figure out exactly how it works well enough to modify it confidently).
I hope that made sense. I’m still looking for a way to do some sort of downgrade, if it’s at all possible.
Forum: Fixing WordPress
In reply to: Developed on MySQL 5, production server runs 4It’s more the admin settings and some plugin settings that I would really rather not have to think my way through the settings again, but it is an option I suppose.