In the Oxygen's Facebook group a user asks:

Trying to add the post category to Easy Posts Grid - Image with title overlay. I used: <?php the_category( $separator ); ?>
I also created a class in the CSS template. When I apply code, all of the content disappears.

This members-only tutorial provides the steps to show categories (if present) for posts output by Oxygen's Easy Posts component with the "Grid - Image w/ Title Overlay" preset.

Before:

After:

Step 1

In the Oxygen editor, select your Easy Posts component.

Load Settings from Preset: Grid - Image w/ Title Overlay

a) Go to Templates > Template PHP and replace the entire code with:

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($27/month or $169 one-time).

Already a member? Log in below or here.

Need help implementing a tutorial in your site or want to hire me for custom work?

HIRE ME

Find the article helpful and wish to donate?

DONATE

Comments

For adding code blocks wrap the code in three backticks. Markdown should work.
Provide a URL of your site/webpage if something is not working.
  • I’m getting error when adding your code below my h2

    <a class='oxy-post' href='<?php the_permalink(); ?>'>

    );'>

    </div>

    %s %s', __( 'Categories:', 'oxygen' ), $terms );
    ?>

    </div>
    </a>

    If I take your code category code out it works just fine…

  • magnifiercross
    >
    linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
    %d bloggers like this: