- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
CherryFramework 3. How to display tags on pages, not only posts
January 15, 2016
This tutorial shows how to display tags on pages, not only posts in CherryFramework3 templates.
CherryFramework 3. How to display tags on pages, not only posts
-
First, install the plugin to assign tags to pages. We recommend using ‘Post Tags and Categories for Pages’. Install it using Plugins -> Add new -> Upload option in the Dashboard. Make sure to activate plugin at once.
-
Next, open any required page and add tags for it. You may use ‘Choose from the most used tags’ option to make it faster. Update the page:
-
Next, open server files using either FTP or hosting cPanel. Navigate to ‘wp-content/themes/CherryFramework/loop’ folder, locate loop-page.php file in the list. Copy the file to ‘wp-content/themes/theme#####/loop’ directory in the server, where ##### is the actual number of your theme.
-
Get back to the Dashboard. Open Appearance> Editor> theme####>loop-page.php file to edit. Let’s place there a new line of code for tags display.
-
Copy-paste the following line there:
1<!--?php the_tags(
'Tags: '
,
', '
,
'<br /-->'
); ?>
Put it to the bottom of the file, just above the closing tag:
1<!--?php
endwhile
; ?-->
Update the file once done editing.
Get back to the site’s frontend to check results. Tags are successfully displayed in the page now.
Feel free to check the detailed video tutorial below:
CherryFramework 3. How to display tags on pages, not only posts