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

  1. Joost85
    Posted 3 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 :)


  2. Joost85
    Posted 3 years ago #

    still no replies :(

  3. fernandobt
    Plugin Author

    Posted 3 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:

  4. Joost85
    Posted 3 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