David Radovanovic
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Rotator] [Plugin: WP Rotator] Examples of function markupI added the click-through link to the titles via adding the code below to my functions.php file:
function custom_rotator_featured_cell_markup($result) { global $post, $animate_style, $first; $clickthrough_url = esc_attr(get_post_meta($post->ID, 'wp_rotator_url', true)); $show_info = esc_attr(get_post_meta($post->ID, 'wp_rotator_show_info', true)); /* Backwards compatible with old version, where we didn't prefix the field */ if (empty($clickthrough_url)) { $clickthrough_url = esc_attr(get_post_meta($post->ID,'url',true)); } if (empty($show_info)) { $show_info = esc_attr(get_post_meta($post->ID,'show_info',true)); } /* */ if (!isset($clickthrough_url)) { $clickthrough_url = get_permalink($post->ID); } $result .= '<li class="featured-cell"'; if ($animate_style == 'fade') { if ($first) { $first = false; } else { $result .= 'style="display:none;"'; } } $result .= '>'; $result .= '<a href="' . $clickthrough_url . '">'; $image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'wp_rotator' ); global $bsd_pane_height, $bsd_pane_width; if ($image[1] == $bsd_pane_height && $image[2] == $bsd_pane_width) $result .= get_the_post_thumbnail( $post->ID, 'wp_rotator' ); else $result .= ' <img width="' . $bsd_pane_width . '" height="' . $bsd_pane_height . '" src="' . $image[0] . '" />'; $result .= '</a>'; if ($show_info == true): $result .= ' <div class="info">'; $result .= '<a href="' . $clickthrough_url . '"> <!-- added link to title -->'; $result .= ' <h1>' . get_the_title() .'</h1>'; $result .= '</a><!-- closed link to title --> '; if (get_the_excerpt()) $result .= ' <p>' . get_the_excerpt() . '</p>'; $result .= ' </div>'; endif; $result .= '</li><!-- featured-cell -->'; return $result; } remove_filter('wp_rotator_featured_cell_markup','wp_rotator_featured_cell_markup'); add_filter('wp_rotator_featured_cell_markup','custom_rotator_featured_cell_markup');Forum: Plugins
In reply to: [WP Rotator] [Plugin: WP Rotator] QueryThis is what I used and works pretty good: showposts=5&category_name=Events&orderby=date&order=DESC
Great plugin!!!
Forum: Plugins
In reply to: [ReciPress] [Plugin: ReciPress] assign to custom post typeThanks for the reply. One more question: does ReciPress adhere to microdata as per schema.org? Thanks.
Forum: Plugins
In reply to: [ReciPress] [Plugin: ReciPress] assign to custom post typeTammy, I’m trying to decide whether to add RP to a chef site. I’ve used other plugins before though haven’t been pleased. Essentially the site has three “food-related” offerings; Articles, Events and Recipes. So, logically I decided to create two additional custom post types; Events and Recipes since both have a common structure and need to use microdata for SEO, i.e. http://www.schema.org/Event and http://www.schema.org/Recipe. Question: does your answer above to @tatamata address the custom post type issue, if I wanted to use a custom post type? Are there any drawbacks from using a custom post type? Thanks for any feedback!
404 errors persisted until changed my url to /comment-subscriptions.html. Notice the the .html at the end? This is because of my permalink structure set at /%postname%.html. And, lastly I unchecked the “Redirect ugly URL’s to clean permalinks.” in the WordPress SEO by Yoast Plugin.
Thanks for a great plugin… will vote for it right now.
Thanks for a very usefully plugin. Well, I wish it was clearer (to me) though the debug log restates the above errors. Thinking that it was a permissions issue I manually chmod -R 777 ./* in the /home/whatsthe/webapps/wtbi/wp-content/uploads/ptetmp/3044/ and it still complains that the path is invalid. Any advice?
I’ve tried several different browsers so that’s not the issue. Maybe a conflict with another plugin?
Forum: Plugins
In reply to: [Add Link to Facebook] [Plugin: Add Link to Facebook] Not posting imagesThank you!
Forum: Plugins
In reply to: [Add Link to Facebook] [Plugin: Add Link to Facebook] Not posting imagesHowever, even after 7 hours facebook still wants to use the WordPress logo. Anyway to force facebook to see the new “Like” image? Thanks!
Forum: Plugins
In reply to: [Add Link to Facebook] [Plugin: Add Link to Facebook] Not posting imagesThat seemed to work: http://www.on-your-mind.com/wp-content/uploads/2011/10/on-your-mind-header21-e1320699857597-141×150.jpg
Thanks!
Forum: Plugins
In reply to: [Add Link to Facebook] [Plugin: Add Link to Facebook] Not posting imagesI’ve have a similar issue. I just want my Link Picture settings to propagate.
I’ve set my Custom picture URL and Default picture URL: http://www.on-your-mind.com/wp-content/uploads/2011/10/on-your-mind-header21-e1320699857597-141×150.jpg
though the page code keeps displaying:
<meta property=”og:image” content=”http://www.on-your-mind.com/?al2fb_image=1″ />
which is the WordPress logo.
Any advice would be appreciated. BTW – I have Version 1.116 release.
Thanks!
Can it be turned into a shortcode?
Thanks for your quick reply. Does this code belong in the functions.php ?
Obviously, I’m not a programmer, though is this doable:
add_action('promoslider_content', 'my_slider_content'); function promoslider_extra_content(){ echo '$content'; }Especially when content is out of the loop?
Should I echo the post’s content via?:
... add_action('promoslider_content', 'my_slider_content'); function promoslider_extra_content(){ echo '<< INSERT CUSTOM CONTENT HERE >>'; }..