Katherine White
Forum Replies Created
-
Forum: Plugins
In reply to: [Social Media Aggregator] Blocking Featured ImageI resolved this by adding a conditional to ensure the theme doesn’t already support this feature. I may do the theme override to avoid having to modify plugin code, but this is another alternative fix that may help someone.
if ( !current_theme_supports( 'post-thumbnails') ) { add_theme_support('post-thumbnails', array($this->post_type)); }
I’d love to see the plugin updated to address this — I’m very excited about the potential.
Forum: Plugins
In reply to: [Per Page Widgets] modification to add per page widgets to custom post typesThis is the right idea, but there is a better approach.
Instead of editing the plugin file, use the WordPress action hook add_meta_boxes in your functions.php file or custom plugin. This way the boxes get added and you won’t run into upgrade issues on the plugin.
Here’s the adapted implementation:
function my_custom_meta_boxes( $post_type, $post ) { $args = array( 'public' => true, '_builtin' => false ); $operator = "and"; //'and or 'or' $output = "names"; //names or objects - names is default $post_types = get_post_types($args,$output,$operator); foreach($post_types as $post_type) { add_meta_box( 'i123_widgets_custom_fields', __('Per Page Widgets', 'i123_widgets'), 'i123_widgets_custom_fields_controllbox', $post_type, 'side', 'high' ); } } add_action( 'add_meta_boxes', 'my_custom_meta_boxes', 10, 2 );
Forum: Plugins
In reply to: [Plugin: User Photo] Compatible with 2.5 yet?Just create one based off archive.php (if you have that in your theme) or index.php. Then insert the call to render the user photo wherever you want it to go. The Author Templates page even has a full sample author.php file you can just copy and paste (then update with the photo) if you want to.
Forum: Plugins
In reply to: [Plugin: Category Posts Widget] Excerpt differs on site, excerpted postI was able to correct this by changing the call to
the_excerpt();
injl_cat_posts_widget()
toecho $post->post_excerpt;
incat-posts.php
. It would be nice not to have to edit the plugin, though. If you (awesome developer person) have time to resolve it on your end, that would be ideal. Thanks!Forum: Plugins
In reply to: [Plugin: User Photo] Compatible with 2.5 yet?Works perfectly — thanks so much for the update. ??
Forum: Plugins
In reply to: [Plugin: User Photo] Compatible with 2.5 yet?I was able to get this working with 2.5 just by adding this to my author.php file after populating
$curauth
(see the Author Templates page for examples):$authordata = $curauth;
I haven’t seen any ill effects yet (though overwriting globals always makes me nervous, but whatever).
Hope that’s helpful!
Forum: Plugins
In reply to: [Plugin: Category Posts Widget] Excerpt differs on site, excerpted postUpdate: it looks like this is related to the plugin after all; I just did something similar pulling the excerpt with the c2c “Customizable Post Listings” plugin and got the correct excerpt value on my home page. Thanks!