Title: webleo's Replies | WordPress.org

---

# webleo

  [  ](https://wordpress.org/support/users/webleo/)

 *   [Profile](https://wordpress.org/support/users/webleo/)
 *   [Topics Started](https://wordpress.org/support/users/webleo/topics/)
 *   [Replies Created](https://wordpress.org/support/users/webleo/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/webleo/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/webleo/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/webleo/engagements/)
 *   [Favorites](https://wordpress.org/support/users/webleo/favorites/)

 Search replies:

## Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[BackWPup – WordPress Backup & Restore Plugin] [Plugin: BackWPup] wp-cron isn't working](https://wordpress.org/support/topic/plugin-backwpup-wp-cron-isnt-working/)
 *  [webleo](https://wordpress.org/support/users/webleo/)
 * (@webleo)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-backwpup-wp-cron-isnt-working/#post-2225762)
 * 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] [Plugin: WordPress SEO by Yoast] WordPress SEO: meta-description generation bug with non-English pos](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-wordpress-seo-meta-description-generation-bug-with-non-english-posts/)
 *  [webleo](https://wordpress.org/support/users/webleo/)
 * (@webleo)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-wordpress-seo-meta-description-generation-bug-with-non-english-posts/#post-1914353)
 * Seems to be solved in the latest version. Awesome!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [[YouTube] YouTube oEmbed auto-resizes to the wrong size](https://wordpress.org/support/topic/youtube-oembed-auto-resizes-to-the-wrong-size/)
 *  [webleo](https://wordpress.org/support/users/webleo/)
 * (@webleo)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/youtube-oembed-auto-resizes-to-the-wrong-size/page/2/#post-2146407)
 * I 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=json`
 * It 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] [Plugin: WordPress SEO by Yoast] WordPress SEO: meta-description generation bug with non-English pos](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-wordpress-seo-meta-description-generation-bug-with-non-english-posts/)
 *  [webleo](https://wordpress.org/support/users/webleo/)
 * (@webleo)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-wordpress-seo-meta-description-generation-bug-with-non-english-posts/#post-1914352)
 * 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?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[BackWPup – WordPress Backup & Restore Plugin] [Plugin: BackWPup] wp-cron isn't working](https://wordpress.org/support/topic/plugin-backwpup-wp-cron-isnt-working/)
 *  [webleo](https://wordpress.org/support/users/webleo/)
 * (@webleo)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-backwpup-wp-cron-isnt-working/#post-2225729)
 * 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP 3.2.1. problem out of memory](https://wordpress.org/support/topic/wp-321-problem-out-of-memory/)
 *  [webleo](https://wordpress.org/support/users/webleo/)
 * (@webleo)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/wp-321-problem-out-of-memory/page/2/#post-2186375)
 * I Haven’t experienced this problem again so far after adding the following to
   the .htaccess file:
 *     ```
       php_value memory_limit 64M
       ```
   
 * And this to wp-config.php:
 *     ```
       define('WP_MEMORY_LIMIT', '64M');
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Contact Form 7 "Failed to send your message"](https://wordpress.org/support/topic/contact-form-7-failed-to-send-your-message/)
 *  [webleo](https://wordpress.org/support/users/webleo/)
 * (@webleo)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/contact-form-7-failed-to-send-your-message/#post-2208173)
 * The solution of this issue for me was not to use utf-8 chars in the subject line(
   I now use ascii only).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[BackWPup – WordPress Backup & Restore Plugin] [Plugin: BackWPup] wp-cron isn't working](https://wordpress.org/support/topic/plugin-backwpup-wp-cron-isnt-working/)
 *  [webleo](https://wordpress.org/support/users/webleo/)
 * (@webleo)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-backwpup-wp-cron-isnt-working/#post-2225613)
 * 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP 3.2.1. problem out of memory](https://wordpress.org/support/topic/wp-321-problem-out-of-memory/)
 *  [webleo](https://wordpress.org/support/users/webleo/)
 * (@webleo)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/wp-321-problem-out-of-memory/#post-2186320)
 * Hi 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Get all tags used in custom post type](https://wordpress.org/support/topic/get-all-tags-used-in-custom-post-type/)
 *  [webleo](https://wordpress.org/support/users/webleo/)
 * (@webleo)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/get-all-tags-used-in-custom-post-type/#post-1924401)
 * I 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](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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP 3.2.1. problem out of memory](https://wordpress.org/support/topic/wp-321-problem-out-of-memory/)
 *  [webleo](https://wordpress.org/support/users/webleo/)
 * (@webleo)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/wp-321-problem-out-of-memory/#post-2186281)
 * Bump.
    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 4
 * This 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [dynamic posts in menu?](https://wordpress.org/support/topic/dynamic-posts-in-menu/)
 *  [webleo](https://wordpress.org/support/users/webleo/)
 * (@webleo)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/dynamic-posts-in-menu/#post-1645666)
 * 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Accidently changed site or home url? don't panic!](https://wordpress.org/support/topic/accidently-changed-site-or-home-url-dont-panic/)
 *  Thread Starter [webleo](https://wordpress.org/support/users/webleo/)
 * (@webleo)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/accidently-changed-site-or-home-url-dont-panic/#post-1680458)
 * **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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Accidently changed site or home url? don't panic!](https://wordpress.org/support/topic/accidently-changed-site-or-home-url-dont-panic/)
 *  Thread Starter [webleo](https://wordpress.org/support/users/webleo/)
 * (@webleo)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/accidently-changed-site-or-home-url-dont-panic/#post-1680450)
 * **ClaytonJames** – 😀
    Yeah it’s probably beginners’ un-luck.

Viewing 14 replies - 1 through 14 (of 14 total)