WordPress has an intuitive administration interface which anyone can handle. In WordPress you will be able to compose a post and publish it on your website with just a few clicks! With WordPress you can easily customize the look of your website for there are lots of free WordPress themes available on the Net.
This Advanced WordPress Tutorial covers the following topics:
WordPress is really easy to install. It is included in the Softaculous Auto-installer tool and can be activated in just a few clicks. If your host does not offer Softaculous, you will learn how to perform amanual installation of WordPress
Learn how to write a posts and how to create pages in WordPress. You will also read how to arrange posts and articles into categories in WordPress and how to manage comments in WordPress.
Detailed instructions how to install and enable different themes for your WordPress. Also, you may check our tutorial on how to create a simple WordPress theme.
The first thing you need to do to install WordPress is to download the latest installation package. Make sure that you download WordPress only from the official download page.
Once the download is complete, extract the archive and upload it to your web hosting account. You can do that via FTP using a client application like Filezilla or via cPanel -> File Manager -> Upload file(s). If you want this WordPress installation to be main for your website, the files should reside in the public_html folder of your account. However, you can always make a subfolder (i.e. public_html/blog) if you want to run only part of your website on WordPress.
Next, navigate to your website to start with the installation process. If you have uploaded WordPress in your public_html directory you'll need to go to http://yourdomain.com in your preferred browser. The first thing you will notice is a message, telling you that you don't have a wp-config.php file and you should create one. Just click on the Create a Configuration File button to proceed.
On this page you will see a message, asking you to prepare the necessary information for the installation. Basically, you need to make a new MySQL database, username for it and grant that username the appropriate permissions for this database. For detailed information on how to do that, please refer to our MySQL tutorial. Once you have your database info, hit the Let’s go! button.
Enter the details for your newly created MySQL database and press the Sumbit button
On the next screen you will have to enter the information about your administrative username and the title of your new site. In addition, you can specify whether you'd want search engines to index your site or not. Once you fill in that information, press the Install WordPress button. Bear in mind, however, that you should specify a real email address. It can be later used in case you forget your password.
That's it!Your new WordPress application is installed. You can use the Login In button to access your administrative backend and start posting in your new site.
................
,,,,
Create A Website With WordPress
Once you have WordPress installed, you are ready to start work and add content to your website.
Once you have your Wordpress blog installed, you need to log in to the WordPress administration area from where you can write posts and articles, manage comments, change your theme, etc. To log in the WP admin panel, navigate to the WP login page or directly type the URL in your browser:
http://www.yourdomainname.com/wp-admin/
Writing a post in WordPress
Writing posts and pages is the core activity in WP. You can start your editorial experience by clicking the Add New button located in the Posts menu:
You can proceed with entering the desired content. Once you are ready, the new post can be published just by clicking the Publish button.
Creating pages in WordPress
Creating individual pages in WordPress is quite similar to writing a post. You should simply click Add New in the Pages menu.
When you are ready with your new page, click Publish to save it.
The main functions of the WordPress tool are accessible from the upper part of the Admin page. They will help you to create and manage your blog website.
Dashboard Here you can see the latest news from the WordPress developer's site.
Write This is the place where you can share your thoughts and ideas with the world by writing posts and pages or editing the existing ones.
Manage This is actually where you can manage the content of your site. You can see lists of all your Posts, Pages, Categories and Comments, read and edit them. Here you can also edit your Templates and other files used in your blog.
Links Here you can add links to your favorite web sites. They can be organized by category, have internal references about your relationship to their destinations, be automatically associated with images, and can even be rated on a scale from zero to nine.
Presentation From that part of Administrator's area you can manage the way your content will be shown to the visitors of your blog. Here you can change the themes and add new from the developer's site.
Plugins This is the place, where you can manage the existing plugins and add new ones from the developer's site. Every plugin comes with the description about its functionality and instruction how to enable it.
Users Here you can manage your user's profiles or add new users to your blog. This way they also will be able to add content to your blog.
Options This is the place where you can manage all the configuration settings for your blog. This section includes general, writing, reading, discussion, miscellaneous options and customization of permalink structure.
Import Here you can import posts or comments from another system into your current blog.
.................................
WordPress Categories
In order to have your blog in a decent structure and ease your visitors' navigation throughout your posts and pages, you should categorize your posts.
Create a new category in WordPress
A new category can be created from the Posts menu > Categories.
Change the category of a post
In order to move a post from one category to another, you should click on Edit in the Posts menu, hover over the post you wish to edit and click Quick Edit.
From the Categories section select the new category (in our case the Test category) and click Update Post to save the change.
Delete a category
WordPress Comments
In WordPress your visitors have the option to leave comments on your site. This feature creates a dynamic interchange between you and your readers.
Moderate comments
You can moderate your visitors' comments via the Comments menu in the WordPress administrator backend.
Comment options
You have a number of options that you can set for your Comments. They are listed under Settings > Discussion.
This is the place where the site administrator decides:
if comments are allowed,
if pingbacks and trackbacks are acceptable,
and what constitutes Comment Spam..............
How to Transfer WordPress
This tutorial will teach you how to transfer a WordPress-based website in a manner that best fits your needs. Whether you are moving from Wordpress.com or from a stand-alone application, the instructions below will help you. Note that if you are transferring your WordPress site to SiteGround, we provide a free professional site transfer as part of our WordPress hosting package.
Once you have your Wordpress blog installed, you need to log in to the WordPress administration area from where you can write posts and articles, manage comments, change your theme, etc. To log in the WP admin panel, navigate to the WP login page or directly type the URL in your browser:
http://www.yourdomainname.com/wp-admin/
Writing a post in WordPress
Writing posts and pages is the core activity in WP. You can start your editorial experience by clicking the Add New button located in the Posts menu:
You can proceed with entering the desired content. Once you are ready, the new post can be published just by clicking the Publish button.
Creating pages in WordPress
Creating individual pages in WordPress is quite similar to writing a post. You should simply click Add New in the Pages menu.
When you are ready with your new page, click Publish to save it.
Website With WordPress
Once you have WordPress installed, you are ready to start work and add content to your website.
Once you have your Wordpress blog installed, you need to log in to the WordPress administration area from where you can write posts and articles, manage comments, change your theme, etc. To log in the WP admin panel, navigate to the WP login page or directly type the URL in your browser:
http://www.yourdomainname.com/wp-admin/
Writing a post in WordPress
Writing posts and pages is the core activity in WP. You can start your editorial experience by clicking the Add New button located in the Posts menu:
You can proceed with entering the desired content. Once you are ready, the new post can be published just by clicking the Publish button.
Creating pages in WordPress
Creating individual pages in WordPress is quite similar to writing a post. You should simply click Add New in the Pages menu.
When you are ready with your new page, click Publish to save it.
InstallationWordPress Fantastico Installation
Important!SiteGround no longer provides Fantastico autoinstaller on it servers. The new installer now available is Softaculous. In extensive tests it proved to match our outstanding service quality standards better, by providing more applications, faster version updates and better support. You can read more about why SiteGround now uses Softaculous in our blog.
Please, follow the step-by-step guide below in order to activate WordPress on your hosting account:
STEP 1Please, login to your CPanel and locate the Fantastico De Luxe icon:
STEP 2Find and click the WordPress link.
STEP 3Then choose New Installation:
STEP 4Decide upon the location of your blog - if you would like to have it as your site front page, leave the directory box blank, otherwise fill in the appropriate folder name.
Next, fill in the administrator details and the e-mail account configuration then click the Install WordPress button.
STEP 5A new confirmation page will be loaded for the installation. Click the Finish Installation button if no errors are reported.
If else you will have to go back and rectify the specified issues.
STEP 6After completing the installation the final screen will load, providing you with the installation details. You will be able to e-mail the details to a specified address also in order to keep them for future reference.
How use Softaculous to Install WordPress
This tutorial is designed to show you how to use Softaculous to install a WordPress application to your site. It will take only few minutes and literally no advanced skills to have a fully functional WordPress instance in your hosting account.
First, login to your cPanel account and find the Softaculous icon under the "Software Services" section. It should be located in the lower part of your cPanel page, right under the "Domains" section.
Once you click on the Softaculous button, you will be redirected to the page where you have to chose the application you want to install. On the left side of your screen locate the "Blogs" category, click on it and then click on the "WordPress" link that will appear.
On the next page, press the Install button at the top of your screen to specify that you want to perform a brand new WordPress installation.
Finally, enter the required fields for your site - title, description, administrative username and password, administrative e-mail etc. and click on the "Install" button. Please note that by default Softaculous will install the application in a "wp" sub-folder. That being said, if you would like to be able to access the website only via your domain name you should delete the wp string from the "Directory" field. If you want to install the application in another sub-folder you should simply type it in the field.
Note:type=link has been deprecated from WordPress 3.0 onwards. Use taxonomy=link_category instead.
child_of
(integer) Display all categories that are descendants (i.e. children & grandchildren) of the category identified by its ID. There is no default for this parameter. If the parameter is used, the hide_empty parameter is set to false.
parent
(integer) Display only categories that are direct descendants (i.e. children only) of the category identified by its ID. This does NOT work like the 'child_of' parameter. There is no default for this parameter. [In 2.8.4]
orderby
(string) Sort categories alphabetically or by unique category ID. The default is sort by Category ID. Valid values:
id
name - default
slug
count
term_group
order
(string) Sort order for categories (either ascending or descending). The default is ascending. Valid values:
asc - default
desc
hide_empty
(boolean) Toggles the display of categories with no posts. The default is 1 for true or you can add '0' for false (show empty categories). Valid values:
1 - default
0
hierarchical
(boolean) When true, the results will include sub-categories that are empty, as long as those sub-categories have sub-categories that are not empty. The default is true. Valid values:
1 (true) - default
0 (false)
exclude
(string) Excludes one or more categories from the list generated by wp_list_categories. This parameter takes a comma-separated list of categories by unique ID, in ascending order. See the example.
include
(string) Only include certain categories in the list generated by wp_list_categories. This parameter takes a comma-separated list of categories by unique ID, in ascending order. See the example.
list - default.
none
number
(string) The number of categories to return
taxonomy
(string or array) Taxonomy to return. This parameter added at Version 3.0 Valid values:
category - default
taxonomy - or any registered taxonomy
pad_counts
(boolean) Calculates link or post counts by including items from child categories. Valid values:
1 (true)
0 (false) - default
Return values
(array)
Returns an array of category objects matching the query parameters.
This slightly altered code will grab all categories and display them with indent for a new level (child category). The select box will have a name= and id= called 'select_name'. This select will not display a default "none" as the original code was used to attach a category as a child to another category (or none).
Here's how to create a dropdown box of the subcategories of, say, a category that archives information on past events. This mirrors the example of the dropdown example of wp_get_archives which shows how to create a dropdown box for monthly archives.
Suppose the category whose subcategories you want to show is category 10, and that its category "nicename" is "archives".
This example will list in alphabetic order, all categories presented as links to the corresponding category archive. Each category descripition is listed after the category link.
The most appropriate use for get_posts is to create an array of posts based on a set of parameters. It retrieves a list of latest posts or posts matching this criteria.get_posts can also be used to create Multiple Loops, though a more direct reference to WP_Query using new WP_Query is preferred in this case.
The parameters of get_posts are similar to those of get_pages but is implemented quite differently, and should be used in appropriate scenarios. get_posts usesWP_Query, whereas get_pages queries the database more directly. Each have parameters that reflect this difference in implementation.
query_posts also uses WP_Query, but is not recommended because it directly alters the main loop by changing the variables of the global variable $wp_query.get_posts, on the other hand, simply references a new WP_Query object, and therefore does not affect or alter the main loop.
If you would like to alter the main query before it is executed, you can hook into it using pre_get_posts. If you would just like to call an array of posts based on a small and simple set of parameters within a page, then get_posts is your best option.
get_posts() makes use of the WP_Query class to fetch posts. See the parameters section of the WP_Query documentation for a list of parameters that this function accepts.
Note: get_posts uses 'suppress_filters' => true as default, while query_posts() applies filters by default, this can be confusing when using query-modifying plugins, like WPML. Also note that even if 'suppress_filters' is true, any filters attached to pre_get_posts are still applied—only filters attached on 'posts_*' or 'comment_feed_*' are suppressed.
Note: The category parameter needs to be the ID of the category, and not the category name.
Note: The category parameter can be a comma separated list of categories, as the get_posts() function passes the 'category' parameter directly into WP_Query as 'cat'.
$post_mime_type
(string|array) (Optional) List of mime types or comma separated string of mime types.
Default: None
Return Value
(array)
List of post objects. See get_post() return values.
Unlike get_pages(), get_posts() will return private pages in the appropriate context (i.e., for an administrator). (See: Andreas Kirsch, WordPress Hacking II, January 24, 2009-- accessed 2012-11-09.)
Examples
Posts list with offset
If you have your blog configured to show just one post on the front page, but also want to list links to the previous five posts in category ID 1, you can use this:
Some post-related data is not available to get_posts by default, such as post content through the_content(), or the numeric ID. This is resolved by calling an internal function setup_postdata(), with the $post array as its argument:
To access a post's ID or content without calling setup_postdata(), or in fact any post-specific data (data retained in the posts table), you can use $post->COLUMN, where COLUMN is the table column name for the data. So $post->ID holds the ID, $post->post_content the content, and so on. To display or print this data on your page use the PHP echo command, like so:
<?php echo $post->ID; ?>
Latest posts ordered by title
To show the last ten posts sorted alphabetically in ascending order, the following will display their post date, title and excerpt:
Allows you to get a post ID by post slug. The caller_get_posts argument excludes sticky posts from this custom query.
<?php
$the_slug = 'my_slug';
$args=array(
'name' => $the_slug,
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => 1
);
$my_posts = get_posts($args);
if( $my_posts ) {
echo 'ID on the first post found '.$my_posts[0]->ID;
}
?>
Taxonomy Parameters
Show posts associated with certain taxonomy. If specifying a taxonomy registered to a custom post type then instead of using 'category' you would use '{custom_taxonomy_name}'. For instance, if you had a custom taxonomy called "genre" and wanted to only show posts from the "jazz" genre you would use the below code.
Show posts associated with a certain custom field. Following example displays posts from the 'product' post type that have meta key 'featured' with value 'yes', using 'meta_query':
Though WordPress has a hugenumber of themes available, I often get clients asking me if it is possible to take a standard HTML / CSS template and transform it into a WordPress theme.The answer is yes, and to do the basic conversion, it is affordable and fast.The way I convert a template to a WordPress theme involves a few easy steps. In this post, I’ll explain how to get a simple conversion underway.
Step 1: Prepare At this point, you should have an HTML file, a CSS file, and a directory of images for your template. Make any design changes now, because later you will need to edit more than one .html and one .css file. Where the main content of your page is, make sure there is only one ‘content block.’ You won’t need any others, as WordPress loops through this section to populate your page with posts.Once you have your design finalized, you are ready to cut that html file up into the component parts of your new WordPress theme.
Step 2: Slice ‘n’ Dice Create a new directory for your theme. It is in this directory that you will place the PHP files, with content supplied by your converted template. Go through your HTML file, and mark each section in the file. The sections you are looking for are:
Header
Sidebar
Footer
Main Content (where your posts will go)
Mark the header, sidebar and footer sections with something like
You can find code to add to your sidebar and footer in the WordPress Codex.Lastly you need to add the WordPress Loop, the code which will generate all of your small business’ or personal blog content.Add the following above your
You can then add this code for anybody who has an outdated link to a post or page:
1 2 3 4
<?phpelse:?> <h1>Error: Not Found</h1> <p>The page you were looking for is not here.</p> <?phpendif;?>
Step 4: Install Once this is done, save the page as index.php, single.php, and page.php. You can customize each of these to have different display elements for the main page (index.php), single post pages (single.php), and pages (page.php).There are many more ways you can customize your theme, by adding additional WordPress features (see the WordPress Codex for examples), but for now, either zip all your files and upload your theme with the Theme Installer, or copy your theme folder to your wp-content/themes/ folder in your installation of WordPress.
Step 5: Final Tweaks and Maintenance Once the theme is copied or installed, CHMOD all files to allow you to edit them within the WordPress theme editor (Appearance -> Editor), and continue editing and tweaking until you are happy with your new theme.