With Archive Control WordPress Plugin, finally I found the solution to keep HTML entity in the database for category archive pages and easy add content after posts list.
Archive Control WordPress Plugin to keep HTML entities in the DB
I'm an old-school man, I ever used Classic Editor Plugin since I'm using WordPress.
I never liked to keep special chars in the database, sometimes I had problems, so a lot of years ago I decided to use only HTML entities, and I feel better in this way.
Before finding Archive Control, this is the page on WordPress Plugin, I kept all the content of category pages in the file
functions.php of the Child Theme.
I didn't was satisfied, each time I needed to modify the content I had to put my hands in this file that primary role is to keep programming code.
I didn't have any idea to get the result.
It was several months, perhaps one year or so, I was looking for a solution to solve this issue.
I always found a sort of problem don't get to keep in the database HTML entity even for the categories, as for posts and pages.
HTML entities disallowed in WordPress categories
Sure, I think there is a reason, probably lied to security system core, the same problem has been found several times for users of Gutemberg editor.
After all, the Web Browsers interpret in the right way the HTML entities, so I went ahead to find a solution, and finally, with WordPress plugin Archive Control I solved this problem.
Joy Reynolds, WP user, had directed this question for Gutemberg issue in this topic on GitHub.
Probably, is not so simple issue to solve even for programming developers.
This plugin, is a little bit that is around, but I didn't get, WordPress repository have a lot of plugins, several times if you don't search with specific keywords on the web, or in WordPress search engine, is not so simple to find a selective item.
But a few days ago I came across this plugin, and so I began to take out all the text code of the content category from the
functions.php file, and move the content text into categories as it should be, with my great satisfaction.
Is much more simple now manage the archives, easy, and is very good thing.
It became stressful for me to manage the category content into the file
functions.php and isn't its role.
With the risk to make a mistake with chars, it's enough to omit an elision to block the website.
Finally, managing the content categories come back as a pleasure!
Category'sense to exists
Even if the plugin hasn't been tested with the latest 3 major releases of WordPress, as notified on the page, it works well on my website.
29,7 Kb zipped, 127 Kb unzipped, and 148 Kb space on disk.
It permits to add content before the posts lists, and after, with the important aspect to keep HTML entities in the database, my obsessions, chars like
è (è) é (é) à (à) € (€) $ ($) etc.
The simplicity to use is very disarming, as work on the post or page content.
I use it for category archive, and the plugin offers the choice to add content before posts list, and after them, another important aspect I was looking for.
I don't use the description field of SEO plugin I'm using (Rank Math), because doesn't keep the HTML entity in the database, as other SEO plugin I tried, unlike the WordPress Archive Control Plugin does.
So, in the Before archive list field, I add the description of the category, and results at the top of the page, under the title in the same way of SEO Plugin field does, and in the After archive list field I add the content of the category, and this is present just in the first page since I use pagination for category archive posts.
Archive Control WordPress Plugin solved my two issues
This plugin has solved two issues I was looking for a solution to:
• keep HTML entities in the DataBase;
• add content after post lists.
To add before it was yet possible, but without HTML entity saving.
After too, I used a hook of the theme I'using, GeneretePress, to add content after the posts list always in
function.php file in the Child's Theme.
I find important the aspect to add content in the archive category, to do a sense of these pages even if are posts list; can go beyond, to give more trust to the page, with a sense to existing, and give more information about, as well as add links to best posts category in the description archive page.
Recently, I'm working a lot on the archives, I decided to add pagination because it was not good to have one hundred more posts on one page; Ok scrolling but there's a limit.
At least, I hope pagination could be useful for users, and for me too, to improve accessibility and to ease navigation.
I always thought the category archive page does not have just a posts list, I find this solution very poor, and compatibly with the ease of understanding of navigation, I think these pages can have some information more.
The same commitment I put to write a post, I use to write the content for each category; is de facto another post that describes the category and has to give extra useful information.
Manage archives category
Beyond the plugin, I'm finding the best way to manage the archive categories and the pagination, to aim for the best possible result and easy navigation.
I would try to make the category archive something good, important for users, where to find additional and useful information, however interesting content to read.
The archives category could be a sort of landing page if you get to climb the SERP and the content is good; it's a hard job but worth trying.
I find it sad just posts list in archives: if the archive exists must have a sense, not just technical purpose.
As default, several WordPress themes offer to add content in the archive page, to distinguish in a clear way to post layout and let understand the users where they are on your website.
It's clear, the obvious purpose to show the posts list there is well, is the basic rule, but I think the archive page needs something more.
1) First, a brief and good description where the users could find simple and clear pieces of information about the content, and inside the link to the best post of category;
2) after that the post list, obviously;
3) and below the post list the content of the category page, with a beautiful photo or more one, why not, with the purpose to optimize first for users, and after for search engines.
After all the good purposes to manage in best way category archives and the pagination brainstorm in my mind, I find Archive Control WordPress Plugin a beautiful tool to simplify my work.
And so, as always, work in progress!