purrdesign
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Field Template] Insert Image Failure in 3.5Same issue here. I heavily rely on this plugin and so hoping for a fix very soon!
Forum: Plugins
In reply to: [Select Featured Posts] Error with WP 3.5: wpdb::prepare()I’m sorry but I’m not a developer and am having a hard time applying these fixes to this plugin. Looking at the referenced lines in the error this is what is currently there:
<?php global $wpdb, $post; $checked = ''; if ($post->post_status == 'publish' && $post->post_password == '' && $post->post_type == 'post') { $res = $wpdb->get_var($wpdb->prepare("SELECT post_id FROM $wpdb->featured_posts WHERE post_id = $post_id")); if ($res) { $checked = 'checked="true"'; } else { $checked = ''; } ?>
I see the wpdb->prepare argument but not sure what I need to change it to.
Ditto this. Would love to see a fix.
leehalliday –
No, this fix is completely separate from what miickel posted (which didn’t work for me, couldn’t get the permalinks would work). So I took a closer look at the plugin’s code and figured out how to get it to pull the correct thumbnail.
replace array($tbWidth) [no quotes in the actual code] with ‘thumbnail’ [single quotes included].
Got it.
To fix this problem, and have this plugin pull the featured image you have selected for a post, edit the wordpress-popular-posts.php file. On line 703 you’ll see the output for the user-selected thumbnails. Change:
array($tbWidth)
to
‘thumbnail’
(or replace thumbnail with whatever the name of the featured image size you want to use.)
Maybe I spoke too soon. Popular posts display perfectly, but the permalinks are not working (they’re trying to link to the 1970 version of the posts).
Any ideas?
Thanks Miickel! That code worked beautifully. ??
Forum: Plugins
In reply to: [Plugin: Custom Field Template] Multiple templates/custom post typesThanks Hiroaki! It does appear to be working now for multiple templates, everything except the custom box title (always shows the Template #0 title, even for template #1 fields). Not nearly as big of a deal, at least the fields are showing up now. ??
Thanks!
Forum: Plugins
In reply to: [Plugin: Custom Field Template] Multiple templates/custom post typesJust transitioned by custom post types from the functions file to the plugin. CFT still doesn’t work on the 2nd custom template. I do not have spaces, rather, one cft is for ‘recipes’ (the first – this one works) and the second cft is for ‘events’ (this one does not work). All I see on the events post edit page is the Custom Field Template header (not even my custom box header) followed by the initialize/save buttons. But no fields.
If I switch the two fields, putting the events in the template #0 spot, it works, while the recipes template in the template #1 spot does not.
Forum: Plugins
In reply to: [Plugin: Custom Field Template] Multiple templates/custom post typesCreated custom post types through the functions.php file rather than a plugin.
I have two different post types – events and recipes. I’d like a different set of custom fields to show up for each. I have two templates created, one set to show on the recipes post type, the other set to show on the events post type. The second template doesn’t seem to work no matter what I do; I can get the first to show up on one or both of the post types. If I swap the order of the templates, the first one works regardless.