_
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: wp_handle_upload in functions.php fileBetter this way:
include_once ABSPATH . 'wp-admin/includes/media.php'; include_once ABSPATH . 'wp-admin/includes/file.php'; include_once ABSPATH . 'wp-admin/includes/image.php';Forum: Plugins
In reply to: [Get Post Image] [Plugin: Get Post Image] Default ImageSince version 0.07 the plugin supports a
default_imageparameter again.Forum: Themes and Templates
In reply to: has_post_thumbnail returns true on every postI solved this by doing:
if ( strlen( $img = get_the_post_thumbnail( get_the_ID(), array( 150, 150 ) ) ) ) { /* display thumbnail */ } else { /* display some other image */ }Forum: Plugins
In reply to: [Get Post Image] [Plugin: Get Post Image] Default ImageThe plugin was reestructured quite a bit from 0.04 to 0.05. The implementation of this new option will come soon.
By now, you can do something like:
if ($img = get_post_image($args)) // show $img else // show your default imageForum: Plugins
In reply to: [WP-Markdown] [Plugin: WP-Markdown] Breaks oEmbed supportNo problem. Even being a reverse solution, the function I just pasted above works. I’ll be using it just fine.
What’s the problem with oEmbed? I can try to help you with that.
Forum: Requests and Feedback
In reply to: Profile URL ProblemWell… I just switched my account here… Didn’t notice that. Thanks! That’s definitively a voodoo question. =D
Forum: Plugins
In reply to: [WP-Markdown] [Plugin: WP-Markdown] Breaks oEmbed supportThe version 1.1.4 fixes the oEmbed support but somehow strips line breaks in code blocks. Can you please confirm this?
Thanks.
Forum: Plugins
In reply to: [WP-Markdown] [Plugin: WP-Markdown] Breaks oEmbed supportA small function to ensure oEmbed works. I’ll be using it on my theme until this is fixed (or not) in WP-Markdown.
Thanks!
add_filter('the_content', 'monospace_ensure_oembed', 1); function monospace_ensure_oembed($content) { return preg_replace('/^\s*<[^>]*>(http.*)?<[^>]*>\s*$/im', '\1' . "\n", $content); }Forum: Plugins
In reply to: [WP-Markdown] [Plugin: WP-Markdown] Breaks oEmbed support[ Moderator Note: Please post code or markup snippets between backticks or
use the code button. ]According to the markdown syntax, we can ignore some block putting it inside a
<div>. So, this works:<div> https://twitter.com/vmassuchetto/status/230155348680519680 http://www.youtube.com/watch?v=0Uv6EVdAo48 </div>However, it would be interesting for the plugin to correctly render previously inserted oEmbed items.
Still working on it…
Forum: Plugins
In reply to: [Get Post Image] [Plugin: Get Post Image] Howto?It’s OK now. Long maintenance there. =D
http://vinicius.soylocoporti.org.br/get-post-image-wordpress-plugin/Thanks for using the plugin.
Forum: Plugins
In reply to: [Get Post Image] [Plugin: Get Post Image] doesn't work in archive templateHi. Please follow the guidelines in http://vinicius.soylocoporti.org.br/get-post-image-wordpress-plugin/
Thanks for using the plugin.
Forum: Plugins
In reply to: Granting access to plugin SVNBump… !?
Forum: Plugins
In reply to: Granting access to plugin SVNI have a plugin hosted on Codex SVN. I want some other users to be able to commit there.
Thanks