Google Analytics

To set up Google Analytics I firstly created a Gmail account for R A Digital Design.

I created a new account on Google Analytics adding in my Australia, and the Melbourne time zone.

I entered the domain name and retrieved the tracking code. This tracking code was entered into the Jupiter X settings in the Google Analytics field. Code G-2JGH115ZPL.

Back in Google analytics I was confirmed as owner of the R A Digital Design website.

On my WordPress plugins in have downloaded Google Site Kit and have successfully connected Google search console and Google Analytics to WordPress so that I can view everything for the site in WordPress backend admin.

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.