WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. yoyoma1974
    Member
    Posted 5 months 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 5 months 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 3 months 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!

Reply

You must log in to post.

About this Plugin

About this Topic