Archive | Tutorials

21 May 2013 ~ 0 Comments

How to remove the read more link in posts

There are cases where you want just a section of the content to appear on the home or category page and that people should click on a link to read the rest of the article. The default WordPress behavior is that if you insert  the “read more tag” into the content it will split the [...]

Continue Reading

12 October 2011 ~ 1 Comment

SEO for your WordPress blog

In this tutorial you will learn the basic SEO rules to follow when adding posts to your WordPress blog and how to use YOAST WordPress SEO plugin to optimize the blog content. Basic SEO rules for your WordPress blog If you’re reading this you probably already heard about SEO and you want to get a [...]

Continue Reading

05 June 2011 ~ 2 Comments

How to restrict users access to certain posts in WordPress

In this tutorial I will show you how easy is to create posts that are restricted to the general public and only available for users belonging to a specific category. To do this, we need 3 things: a way to mark a post as being available to a specific category of users a way to [...]

Continue Reading

25 May 2011 ~ 8 Comments

How to display content from the database in your WordPress plugin

Let’s say you’re building a plugin that needs to display a list of database entries in a special page in the WordPress dashboard. Something that looks like this:   I have covered previously how to create a new page in the WordPress admin dashboard so let’s see now how you can select the database content [...]

Continue Reading

20 May 2011 ~ 4 Comments

How to find the URL to the plugins folder when creating a plugin

If you’re building a plugin, you will probably get to the point where you would like to include files from the plugin folder. As building a plugin means the code should work no matter how the blog is configured, you should use a function that retrieves the path to the plugin folder, then hardcode only [...]

Continue Reading

29 March 2011 ~ 7 Comments

Creating a WordPress Posts Separator

Do you want to make a separator between posts in WordPress (and don’t know how to handle the last post case where you don’t need to show the separator?) This requires a bit of coding, but it’s quite easy to do. There are a few steps needed to create a WordPress posts separator: identify what [...]

Continue Reading

19 March 2011 ~ 1 Comment

Adding a form to the WordPress admin to save new options

In one of the previous tutorials I have shown how to create a new page in the WordPress Admin dashboard where you can create additional settings fields. If you followed that tutorial, you probably now have an empty page that shows in the WordPress admin menu. In this tutorial I will explain how to create [...]

Continue Reading

20 February 2011 ~ 17 Comments

How to create a new Admin Page in WordPress

Note: it looks like WP is changes the ‘ and “” signs in the content , so you can download the correct code from wps-poll. (you should save it as a PHP fil   Sometimes you might want to create your own admin page in WordPress where you can manage settings that are not WordPress [...]

Continue Reading

20 February 2011 ~ 0 Comments

Margin looks biger in IE6 – the easy fix

If you are implementing a WordPress layout, you most probably have the design centered. Below the header, you probably need 2 columns, one for the WordPress posts and one for the sidebar. Code most likely looks like this: <body> <div id=”header”></div> <div style=”margin-right:auto; margin-left:auto; width:800px;> –> this is the content area <div style=”margin-left:20px; height:400px; width:400px; [...]

Continue Reading

15 February 2011 ~ 4 Comments

Displaying content only on WordPress homepage using is_home()

Sometimes you might need to display content on the WordPress homepage only. For example, I needed to display this Carole Nash banner only on the homepage of the blog. There are a few steps you should take in order to display content on the WordPress homepage only: locate in which file the content should be [...]

Continue Reading