'intval', 'default' => 10, ) ); } function ajcps_render_latest_posts_settings() { $posts_per_page = get_option('ajcps_posts_per_page', 10); ?>

Latest Posts – Settings

Number of posts to display per page in the latest posts grid with pagination. Default: 10

AJ Category Posts - Documentation

Use the shortcode below to display the latest posts from a specific category:

[ajcapos id="POST_ID"]

Steps to Use:

  1. Go to AJ Category Posts → Add New.
  2. Enter a title (for internal reference).
  3. Enter the category slug or ID.
  4. Specify the number of posts you want to display.
  5. Publish the shortcode post.
  6. Copy the generated shortcode and paste it anywhere (pages, posts, widgets).

Example:

If your shortcode post has ID 123, use:

[ajcapos id="123"]

Shortcodes Overview

AJ Category Posts lets you showcase your posts dynamically on your site. You can use these shortcodes individually or together for a complete post showcase.

1. Latest Post

Displays the latest post with a featured image overlay including category, title, author, and date.

Use this shortcode:

[latest_post_overlay]

2. Multiple Latest Posts

Displays multiple posts in a grid layout with pagination. You can specify the number of posts per page with the posts attribute. The default posts per page (9) can be changed from AJ Category Posts → Latest Posts settings.

Use this shortcode:

[latest_posts_grid posts="9"]

3. Most Read Posts

Displays the most read posts based on view count. You can control the number of posts displayed using the posts attribute.

Use this shortcode:

[most_read_posts posts="3"]

These shortcodes allow you to create dynamic post sections anywhere on your site—pages, posts, or widgets. Each shortcode supports category selection, post count, and styling via CSS.

Support:

For more detailed instructions, Watch the Video Tutorial, or Contact us.

About Author

I'm Jahid Shah, a front-end developer with specialized skills in WordPress theme development and WordPress Security. I'm passionate about creating error-free, secure websites and achieving 100% client satisfaction. Solving real-world problems is my passion.

If you found this plugin helpful, you can support the developer via -
Buy Me a Coffee



Watch Help Video

Watch On YouTube

Review This Plugin

Thank you for using BBH Custom Schema. We would greatly appreciate it if you could share your experience and leave a review for us on WordPress.org. Your review inspires us to keep improving the plugin and delivering a better user experience.


Leave a Review

Support:

  1. For support, please visit our Support Forum.