The WordPress Loop

Word Press Loop

The WordPress loop is the built-in tool used to allow you to get posts from your WordPress database and display them to your website / screen through a WordPress theme template file. The WordPress loop is a powerful tool that controls the display of the posts, you can display a list of posts by a specific author, date, title and category. The loop is PHP code that is placed within your chosen themes index.php page and can be easily edited and updated to display the details of your posts.

The code will not update if there is an error within your code, I found that from assessment 2 that  the WordPress theme I chose only wanted 1 set of opening and closing php tags and all code had to sit between the opening and closing tags <?php  ?>

 The have_posts  () checks to see if there are any posts and post them to your site.  while ( have_posts () )  : the_post(); this will display all the posts that have been written. By adding in some conditions into the loop we can start to filter out things like date and author by adding the_author into the php code will display the author of each post.


What is the function of a WordPress template?

WordPress Template

The function of the WordPress page template allows you to build and customize your own web pages, every page template has a template name. Page templates can change the design and layout of a page and can be applied to a single page or be used globally across all pages. Page templates may also display a block of content.  Page templates display your website’s images and words as dynamic content across your website. It can control the look and feel of individual pages and can apply to a single page, a page section or a class of pages.  It will also allow you to show an image that links to another part or post on your WordPress website. The pages templates also enable you to start to customize each individual section of each page. You can also create your own templates and apply it across as pages, navigation systems, main content areas and the footers. All template files live within a theme and show how a site is displayed, they contain a mixture of HTML and PHP code.

Template tags are a custom built-in function into WordPress and are used to get certain chunks of content such as the header and the footer. Instead of copying and pasting the footer content code across all pages by adding to the index.php file the code of get_footer() within the PHP code. If you make a change to your footer file, it updates globally across all of your template pages within your site.

What is the function of Categories and Tags in WordPress?

WordPress Tags & Categories

Categories and tags in WordPress are always located on the right sidebar when writing a blog post, However, they can help to organise the content on your site, as well as help with SEO. They are also the two primary ways of grouping content on a WordPress site, with categories being general labels, while tags describe your posts in more detail. A category represents a subject matter or a group of subjects that are connected to each other in a particular way. The main contrast between categories and tags is the way in which you use them.  Tags are a great tool to identify a piece of content by several specified keywords best to describe your post. Tags are much more in-depth and indicate the individual topics the posts talk about.  I have used tags and categories in my posts to describe the current posts for the website.  

WordPress Plugins

I have deployed the following plugins onto WordPress to help with the following issues Really simple SSL to create the security certificate for the website. Wordfence Security is a plugin that adds extra security to your website .from hackers, and malware scanners.


Site Kit by Google, this plugin allows you to access your google analytics and search console from the WordPress CMS admin. This is great to see any website issues in one place and see how the website is performing in general.


LI have installed Yoast to make sure my SEO is ok and performing well.  I have checked to make sure it is working ok and SEO is good. 


I purchased Jupiter X and installed it to WordPress and chose a theme to build my website from.

WP – Optimiser was installed for ensure the site is fast and deals with the following, clean database, the compression of images and caching