WordPress.org

Forums

List category posts
Adding static text before paramters (3 posts)

  1. yoyoma1974
    Member
    Posted 1 year ago #

    I'm trying to prefix some of the paramters with some static text. Would it be possible to output the following under the post title:

    Filed in "Category Name" by "Post Author" on "Post Date"

    Thanks for any assistance.

    Tim

    https://wordpress.org/plugins/list-category-posts/

  2. fernandobt
    Member
    Plugin Author

    Posted 1 year ago #

    The way to do that would be using a template. Check the example template on templates/default.php as a reference.

  3. raganj
    Member
    Posted 1 year ago #

    I couldn't figure out how to do it using the template, but I was able to do it using css. To add "By" before the author:

    Add this to the main css file:

    .lcp_byline:before {
      content: "By: ";
    }

    Add this to the shortcode:
    author=yes author_tag=span author_class=lcp_byline

    Result:
    By: Author Name

    Hope this helps!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • List category posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic