SimplePie Enclosure Get Media Content Link

SimplePie is a very fast and easy-to-use class, written in PHP, that puts the ‘simple’ back into ‘really simple syndication’. Flexible enough to suit beginners and veterans alike, SimplePie is focused on speed, ease of use, compatibility and standards compliance. When the feed is using the media content url or link, we can not use the get_link() function directly to get a media content url. See example below:

Strict Standards Walker Error After Upgrading WordPress

Nowadays, many developers uses framework to reduce development time and focuses on the features or interface. But after upgrading to the WordPress latest version, front or back end shows strict standards or E_STRICT level error message. The message comes from some custom classes provided by the framework or even the WordPress core. This also occurs when updating theme framework and the child theme generate the same errors. In plugins, this also could happened for addons.

Sending jQuery to WordPress Front End

WordPress front end has two section we can use to send or enqueue the jQuery or other javascript files. It is in the site header wp_head and in the footer wp_footer. We can use one of this section to enqueue files or print custom inline javascript code. A builtin function wp_enqueue_script and add_action to hook a function to a specific action was provided to make it simple. We can make this by editing the theme function.php. Open the file and add the following code: