WP SITES

2952 Tutorials & 191 Plugins

Set Genesis Content Archive Limit Using Code

This code enables you to modify the Genesis > Theme Settings > Content Archives > Character Limit using code. This means you can use the code in your functions file with a conditional tag or directly in a template file to control the character limit and override the settings as seen in the following image:

content-archive-limit

If you want to limit the archive content to a specific amount of characters for one specific type of archive, this code is the solution you need and only works when the Content Archives are configured to display Entry Content.

If you have the settings configured to display Entry Excerpts, use the code in this tutorial instead.

Here’s the code for logged in members:

Related Tutorials

Was This Tutorial Helpful?