slurve
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Conditionals in functions.phpAnyone have an answer for this?
I’m having the same problem, both on my local machine and on a Bluehost install of WP. All Contact Form 7 forms were working fine, now they’re all busted. Hrm.
I ended up using this code in functions.php:
$thumb = new MultiPostThumbnails(array( 'label' => 'Secondary Image', 'id' => 'secondary-image', 'post_type' => 'home_steps' ) ); add_image_size('secondary-image', 416, 325);
And then this in my template:
<?php echo MultiPostThumbnails::the_post_thumbnail('home_steps', 'secondary-image', NULL, 'secondary-image'); ?>
This essentially creates a new thumbnail size of 416×325 with a class of ‘attachment-secondary-image’.
Tom
Figured this out. Well, I’m not sure if it’s the best solution, but hey, it works. I added the following code to functions.php:
// get the the role object $role_object = get_role('editor'); // add $cap capability to this role object $role_object->add_cap( 'edit_theme_options' );
I also deactivated the theme editor, widgets and theme options in the Adminize settings.
Tom
Forum: Fixing WordPress
In reply to: Import data from excel file to a custom post typeThanks for the recommendation. I ended up using CSV Importer and the Custom Post Type switcher plugin.
Forum: Fixing WordPress
In reply to: BUG Quick Edit removes all custom fieldsI’m actually having this same issue. If I edit the date or title of a custom post using Quick Edit, any preset custom taxonomies are removed. I’m not using any custom post type or taxonomy plugins, so I don’t think it’s a conflict.
Any fixes?
Forum: Fixing WordPress
In reply to: Google Map embed 2.5 IssueI’m having the same problem. Has anyone discovered a solution?