webleo
Forum Replies Created
-
My issue was solved when I disabled the maintenance mode plugin. Since accessing wp-cron.php directly from the browser worked just fine while under maintenance mode, I assume that that plugin was blocking the outgoing requests, even for logged-in users.
Daniel, checking that box didn’t help, but thanks anyway. I appreciate your work.
Seems to be solved in the latest version. Awesome!
Forum: Fixing WordPress
In reply to: [YouTube] YouTube oEmbed auto-resizes to the wrong sizeI think this has to do with the way YouTube answers an oEmbed request.
Paste the following oEmbed request in your address par, and the response you’ll get has a very different height than the one specified here:
http://www.youtube.com/oembed?url=http%3A//youtube.com/watch%3Fv%3DM3r2XDceM6A&maxwidth=300&maxheight=400&format=jsonIt seems that YouTube is calculating the height of the frame using the aspect ratio and the width, while, just like zissou said, forgetting about the player bar that forces the video to resize which in turn makes the black lines appear.
Hey,
I can confirm this bug on a non-English site.
Once you get non-English characters in the excerpt, the whole description content becomes empty (”).Even if there were other tags in the template (
hello %%excerpt%% world), the whole thing gets removed.It’s only about characters, not site locale. If I set up an English-only page, within my non-English site – everything works fine.
How can we bring this to the attention of the developer?
Thanks for your comment ctraue.
While you are right about the mechanics of wp-cron, this issue is present, at least on my site, even after the site has been accessed.Forum: Fixing WordPress
In reply to: WP 3.2.1. problem out of memoryI Haven’t experienced this problem again so far after adding the following to the .htaccess file:
php_value memory_limit 64MAnd this to wp-config.php:
define('WP_MEMORY_LIMIT', '64M');Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 "Failed to send your message"The solution of this issue for me was not to use utf-8 chars in the subject line (I now use ascii only).
Hey Valmariel,
Could you say what was the issue with the host if you know?
I’m having the same issue.I have the latest version WP (3.2.1) and BackWPup (2.1.3).
Thanks!Forum: Fixing WordPress
In reply to: WP 3.2.1. problem out of memoryHi calostapi,
I am afraid I am using 3.1.3 and having this issue 🙁
But anyway, the feed is just any RSS feed on the web, which occasionally gets updated with new posts. In my case it’s the feed of a facebook page, and every time the page owner posts a new status, the feed gets updated.
Forum: Fixing WordPress
In reply to: Get all tags used in custom post typeI faced the same problem.
Originally, I was going to solve it with this:
http://wordpress.org/support/topic/custom-post-types-and-tag-cloud?replies=8
but that solution seems a bit inefficient because of the need to get each and every post’s tags and then to remove duplicates.I ended up doing this:
function custom_posts_per_tag($id, $post_type){ $args = array( 'post_type' => array($post_type), 'posts_per_page' => -1, 'tag_id' => $id ); $the_query = new WP_Query( $args ); wp_reset_query(); return sizeof($the_query->posts); } $tags = get_tags(); global $wp_query; $post_type = $wp_query->get('post_type'); foreach ($tags as $tag){ if (custom_posts_per_tag($tag->term_id, $post_type) > 0) { /* Print tag link or whatever you wish here */ } }I assume that WP_Query uses a more efficient way to filter posts by tags, than getting each post’s tag, but I might be wrong.
Forum: Fixing WordPress
In reply to: WP 3.2.1. problem out of memoryBump.
I get this:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 16384 bytes) in …/wp-includes/class-feed.php on line 4This happens in a function that calls fetch_feed(), and after the feed has been updated. Then, after an immediate refresh it is gone.
Line 4 of class-feed.php is:
require_once (ABSPATH . WPINC . ‘/class-simplepie.php’);Is this a bug, or could it be that SimplePie just takes a lot of memory?
Still investigating.
Forum: Fixing WordPress
In reply to: dynamic posts in menu?Hey JeffTD, I guess by now you’ve probably found a solution or just decided you’re not going to do things this way.
For the interest of others who might need such a feature, here’s how I implemented it:
// Menu items and corresponding category IDs $menu_items_to_categorise = array(10 => 1, 11 => 2, 12 => 3); // Get current URL $current_url = (isset($_SERVER['HTTPS']) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; // Get the WordPress generated menu $nav_menu = wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary', 'echo' => 0 ) ); // Loop through the items to categorise foreach ($menu_items_to_categorise as $menu_item_number => $menu_item_cat) { // Get the posts for the current menu-item number global $post; $tmp_post = $post; $args = array( 'category' => $menu_item_cat ); $myposts = get_posts( $args ); // Create list $posts_sub_menu = "\n" . '<ul class="sub-menu">' . "\n"; // Loop through the posts and append the list entries foreach( $myposts as $post ) : setup_postdata($post); $posts_sub_menu .= '<li class="menu-item menu-item-type-custom menu-item-object-custom' . (get_permalink() == $current_url ? ' current-menu-item' : '' ) . '"><a href="'. get_permalink() . '">' . get_the_title() . "</a></li>\n"; endforeach; $posts_sub_menu .= "</ul>\n"; // Return to the parent loop so there will be no conflict $post = $tmp_post; // Inject created list into existing menu $pattern = "%(<li [^>]*id=\"menu-item-" . $menu_item_number . "\"[^>]*>.*)(</li>)%mU"; $replacement = '${1}' . $posts_sub_menu . '$2'; $nav_menu = preg_replace($pattern, $replacement, $nav_menu); } unset($menu_item_number); unset($menu_item_cat);Forum: Fixing WordPress
In reply to: Accidently changed site or home url? don't panic!thisisedie – Sorry, you are right.
But it is very easy not to notice and shut your site this way. I just wish there was some sort of a warning or an easy way to undo it.Forum: Fixing WordPress
In reply to: Accidently changed site or home url? don't panic!ClaytonJames – 😀
Yeah it’s probably beginners’ un-luck.