Posts Tagged‘Wordpress’

wordpress-4

WordPress 4.0 is available!

The latest version of WordPress, version 4.0 is available. You can update to the latest version in your WordPress dashboard or you can download the latest version from http://wordpress.org/. Be sure to get the latest version and here’s what you can expect in 4.0:

New Media Library Grid View

The Media Library gets a new face-lift and provides an easy to sort and view grid.

new-media-library

New Plugin View & Experience

The plugin page is organized more efficiently and has a new view and experience.

new-plugin-view

More support for oEmbed

WordPress now natively supports a wide variety of embed services like Youtube, TEDtv, Vimeo, Flickr, Twitter, SlideShare, and much more. Simply add the URL or embed code and you can see the embed in the live preview and in your post.

support-for-oembed

Choose your language during installation

Throughout the WordPress installation you can choose which language you would like to start with, even before you get wordpress setup:

choose-your-language

Here is the full list of new features included in this latest version:

  • New Media Library Grid Viewer
  • New Plugin View & Experience
  • More support for oEmbed
  • Choose your own Language During Installation
  • Improvements to the Content Editor
  • Improvements to TinyMCE Views
  • New Widget Customizer Panel
  • New Accessibility Features
  • Updated External Libraries

For more info about the latest features be sure to head over to WordPress blog and read up more about it :)

Creating your first WordPress Plug-in

WordPress is great for writing posts, adding videos, and many other of your media blogging needs. Well, when you want to extend WordPress to be ‘all it can be’, you may want to start diving into creating WordPress Plug-ins. Which are surprisingly easy to create. All that is needed to create a Plug-in is to add a new folder (name the folder the same as the plug-in name) in the ‘wp-admin/plugins’ folder. Then add an ‘index.php’ file in that folder. The index.php file will contain the code for your plug-in. I’m going to show you the code for the simplest WordPress Plug-in. The code is as follows:

 
<?php   
 
/* 
	Plugin Name: Plugin Test
	Plugin URI: http://www.yourdomain.com
	Description: Description of the Plug-in
	Version: 1.0 
	Author: Author Name
	Author URI: http://www.author_domain.com
*/  
 
add_filter('the_content', 'function1');
 
function function1($content) {  
 
	return $content.' END OF CONTENT';
 
}
 
?>

In the above code you will need to fill in the according sections of the header, such as Plug-in Name, Description, Author. All this information is inside of a PHP comment enclosed by ‘/* content here */’. This information will be shown in the admin Plug-in section, shown in the image below:

Now, on to the rest of the code, the following line will add a filter to WordPress. The filter will notify WordPress to run the corresponding function before displaying the content of a WordPress post.

add_filter('the_content', 'function1');

And in the function ‘function1′ we accept a variable containing the content of the post. Inside the function we will return the content with the string ‘End of Content’ concatenated at the end.

 
function function1($content) {  
 
	return $content.' END OF CONTENT';
 
}

So, now if our Hello World Post is displayed it will look as follows:

This was a very simple example of how you can create a plug-in to modify the content of a WordPress post. There are many other types of easy or more complicated functionalities you can perform with WordPress Plug-ins. As a start you may want to head over to the WordPress Codex Filter Reference page and view all the different types of plug-in filters in WordPress.

These different types of filters will affect WordPress in multiple different ways. For instance our ‘the_content’ filter added above allowed us to manipulate the content of the WordPress post before it was displayed on the screen :)

WordPress 2 application for the iphone/touch

WordPress 2 is an excellent app for writing posts, approving comments, and editing portions of your blog right in the palm of your hand. In fact this very post is being written using my iPod touch ( I love this thing! )

One of the great things you can do with this latest version is adding photos directly into your post. So, if you have an iPhone you can take pictures and put them right in your post. If you found a new restaraunt you like you can snap a photo, put it in your post and blog about it. This is one disadvantage of having the iPod touch is the lack of a camera; however, I am uncertain of apples plans about adding a camera to the touch.

Another great thing about this app is that when you are writing a post and something comes up that you need to close the app, there is an auto-save feature that will save the current post you were working on.

Now, one last thing that needs to be said about this app is the fact that so many people seem to have problems connecting to their blog through the app. I wanted to share a few things that I have done to get this app connect to my blog.

1. Make sure that you enter your domain as yourdomain.com without the “http://” or a trailing back slash.

2. You will also want to make certain that a specific setting is turned on in the back-end of your admin control panel. In the ‘Settings->Writing’ menu you will see a checkbox titled ‘XML-RPC. Enable the wordpress, Movable Type, MetaWeblog and Blogger XML-RPC publishing protocols.’ Make sure that this is selected.

Other than those, you should be good to go. I use a shared hosting through a 3rd party company. I was unable to connect to my blog, and I had tried everything, when I would go to my blog site it seemed like it was taking forever. I waited a couple hours and tried again with much success. It looked like there was a small downtime with my shared host. So to all the peole who rated this app a 1, I think you should try again and re-rate this app.

Thanks wordpress for not charging me anything to use your app and thanks for a great product.