What's WP
Our everything is about WordPress - best choice of WordPress users!
How to Create Your Workout Diary with WordPress

How to Create Your Workout Diary with WordPress

Just because of the flexibility of WordPress, you can leverage it to start any kind of online platforms and websites. For instance, you can run the photo galleries, personal blogs, product listing sites and many more. This time, we’d like to tell you that this script is also a great tool for starting your workout diary for tracking your daily life and working.

It is true that you now can make use of some third-party devices and applications to handle the daily tracking. With these tools such as Lifesum and Fitbit, you can have the easy tracking of how many pounds you have lost monthly. However, if you are looking for the real and personalized platform to record and track these things, you can check the following contents to learn how to create your workout diary with WordPress.

Finish the Basic Preparations

To start the workout diary, you firstly should set up a WordPress site and host it using the truly trustworthy WordPress hosting provider. Here, we need to mention that if you do not want some others to track your daily life, you’d better make this workout diary site a private one. Or, you can just install WordPress locally.

In addition, you need to plan this diary. For instance, if you want to track your lifestyle to figure out whether it is a healthy one, you can consider the below planning. Here, we’d like to split the contents of this site into three main categories – workout, sleep and diet.

  • Workout – This part includes some sub-categories. They are the workout type, distance, duration and calories.
  • Diet – This part includes the aspects of breakfast, lunch and dinner mainly. Also, you can choose to categorize this part into the points of fat, calories, protein and cholesterol.
  • Sleep – As for this point, you only need to pay attention to the starting time and the ending time.

Make Use of the Advanced Custom Fields Plugin

Actually, in order to run a workout diary using WordPress, the easiest method is to utilize the Advanced Custom Fields plugin. This plugin is the perfect solution for you to add much more flexible data to your site. Actually, the feature of custom fields is native to the script of WordPress. However, this tool ensures the more advanced and user-friendly customer field interface than the default one.

As for how to use this tool to transfer your common WordPress site into a workout diary, you can follow these simple steps.

Step 1 – Create the Field Groups

Here, the field groups are the main content categories of your workout diary. Again, we use our previously mentioned group examples, which include workout, sleep and diet.

For this, you need to click the Custom Fields button, and then, hit the Add New option. In the next screen, you should enter the title of the field group.

Create the Field Groups

Step 2 – Add the Fields In Detail

After that, you should create the detailed fields. For instance, if this group is for the workout, the detailed fields need to include the workout type, duration, distance and calories. Here, you need to click the Add Field button.

Now, you should enter a long list of required information for your newly added field.

  • Field label – This is the name for this field that can be displayed on the editing page. With it, you can enter the correct value into the right field.
  • Field name – This part saves the data at your WordPress database. You can make it the same as the field label. Note that it must be the single word without any spaces, dashes and underscores allowed.
  • Field type – This part decides which kind of values can be entered into this field. By default, this plugin allows 6 main types, and you should choose the right one. For instance, if this field is for workout type, you should choose the type of Text or Select. If this field is for the distance or calories, you should choose the Number type.
  • Required – If you want to be forced to enter all the required values before showing the contents, you can tick the Yes checkbox.
  • Choices & Default values – If you choose the Select field type, you are required to enter all the listed choices for selection, along with the default value.

Field Details

After entering all the required parts, you can click the Close Field button to have the information of this field saved. Note that you can repeat this step to create all your needed fields just like the following example.

Here, you need to know that you have the freedom to drag and to drop these added fields to achieve the reorder purpose.

Field Order

Step 3 – Decide the Location Rules

In this step, you should create and decide a set of rules that determine where and when to add these custom fields into the editing screen or the post object. In the common occasion, you can show this field group when the post type is equal to Post and Page. If you want, you can also add some other rules for the aspects of post categories, page types, page templates and many more.

Note that all the location rules can be grouped altogether using the “and” and “or” statements.

Location Rules

Step 4 – Set Up the Additional Options

In fact, for each of your created field groups, there are some minor options available to help you customize the editing screen where the custom fields will display.

For instance, if you decide to showcase different field groups on a single page, you should set the order number to determine which of them can be showcased in the first place. Note that the value for the first one should be the number of 0.

In addition, it is possible that the page that you are looking to display the field groups have some textual contents in advance. If so, you should choose the display position among the options of sidebar, after the contents and after the post title.

Even, you can choose the style of these custom fields between the options of standard one that has the WordPress metabox and the seamless one that does not allow the default metabox.

Option Settings

Now, as all the settings for this new field group are added and determined properly, you can click the Publish button already.

It is possible that you want to edit different kinds of activities for your workout diary. If so, you can repeat these steps to create as many field groups as you want.

Step 5 – Showcase the Contents of Your Workout Diary

Now, you can start posting the contents for your workout diary. Again, we use the example of the daily workout or the weekly exercise.

For this, you simply need to edit a new page or a new post. If you want, you can enter some textual contents for this diary in the editing screen. After that, you can check a list of custom fields for your workout values, which are showcased under your post editor. Now, you should enter the exact values based on your real situations.

Workout Custom Fields

It’s done. Now, you just need to publish the content and check the front-end result. Note that you can use this method to record anything and any activity of your daily life. This way, you can have a better understanding of yourself via your workout diary online.

Workout Diary

Author

Susan Rose is a freelance writer who has a deep knowledge about WordPress. She loves everything related to website building since the freshman year at Christopher Newport University, and loves to share her experience with people all over all the world. This girl is popular among our readers as she is outgoing and energetic. In the daily life, Susan loves detective novels as it can train her logical thinking and creativity.

Close

Want to Learn More About WordPress?

Get Our Free Themes, Plugins, Support, SEO Tips, and Other Tutorials!