How do I assign custom title and other values to /page/ of archives


I am looking for efficient ways to add following information into archive pages i.e

custom title
custom description
custom h1 tag
and custom paragraph

I will be doing that to all or some pages of archives.

Is there any plugin available for something like that ?

or if I have to get this done, should I go for a plugin development or some small hardcoding / hack in theme file directly?

multiple ideas about how to do it efficiently are appreciated.

Thanks in advance!

  • Patrick
    • Support Monkey

    Hi there @johnnn

    Welcome to WPMU DEV, glad to have you aboard!

    If you make any customizations directly in the theme, you have to re-do them every time you update the theme.

    So the most efficient way to customize theme templates is to first create a child-theme where all your custom stuff will take place.

    A child-theme protects your customizations as they are not overwritten when you update the theme.

    Here's the official WordPress codex page on creating a child-theme:

    ...and here's a recent article on our blog to help make the process as painless as possible:

    Once you have your child-theme, you can start making any changes you like to the theme templates simply by copying the appropriate ones from the parent to the child.

    The names of the templates that you'll be customizing can vary from theme to theme. But, if your theme follows WordPress coding standards, there's likely an archive.php template in there.

    So, for your custom archive template, you would likely want to copy the archive.php file from the parent to the child.

    Here's everything you would want to know about WordPress templates, and their hierarchy:

    You can then change up anything you like in that template. Then save and upload your customized template to the child-theme folder on your site. You will then see your changes on your site, and can safely update the parent theme with no risk of having to re-do all your work. :slight_smile:

    I hope this helps! And thanks for being a member :slight_smile:

  • johnnn
    • WPMU DEV Initiate

    Hey Patrick,

    Thanks for your quick and detailed reply :slight_smile:

    Apart from adopting child theme, would you comment on how do I achieve what I want i.e assign custom <h1>,<title>,<meta>,and<p> to the pages of archive?

    How do I store them into database? what I should be looking, and what I should be storing?

    apologies for being noob!

  • Ash
    • WordPress Hacker

    Hello @johnnn

    I hope you are well today.

    You can change title by filtering wp_title, but other things are not possible out of the box, you will need custom hack for this.

    Anyway, if you please show me some example links and some example content of your live site, I will try to accomplish this.

    Please let us know.


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.