WordPress.org

Forums

List category posts
[resolved] Php noob needs a hand (4 posts)

  1. Joost85
    Member
    Posted 2 years ago #

    Hi , im a php noob!

    i would like to change the output of the
    < ul > to <div>
    and the output of the
    < li > to <p>

    how to do this?

    please keep in mind in a noob.
    so if u could let me copy paste stuff that would be awsome.

    Please help :)

    http://wordpress.org/extend/plugins/list-category-posts/

  2. Joost85
    Member
    Posted 2 years ago #

    still no replies :(

  3. fernandobt
    Member
    Plugin Author

    Posted 2 years ago #

    You don't need to know PHP to do what you want to do. You just need to read the docs and search for the template parameter.

    template - File name of template from templates directory without extension. Example: For 'template.php' value is only 'template'. Default is 'default', which displays an unordered list (ul html tag) with a CSS class. This class can be passed as a parameter or by default it's: 'lcp_catlist'. You can also use the default 'div' value. This will output a div with the 'lcp_catlist' CSS class (or one you pass as parameter with the class argument). The inner items (posts) will be displayed between p tags.

    So you should just pass this parameter:
    template=div

  4. Joost85
    Member
    Posted 2 years ago #

    It totaly worked. I feel like such a dumbass not reading the documentation well...

    I do have another question i do not find in the documentation...

    -I would like to be able to set the backgroundcolor depending on what category it is

    - i would also like to not have the title shown if there is a thumbnail...

    Can u help me :)

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