Giter Site home page Giter Site logo

cpt-lister's Introduction

#Custom Post Type Lister - CPT Lister

This is one amazing, Open Source plugin!
It allows you to list posts from your custom post types.
What is more amazing ?
It is Open Source and yes that means you can contribute to it at every moment you want!

I am the author and my name is Gero Nikolov. My official website is Blogy, which is social media for Bloggers.
But I am also a WordPress engineer at DevriX.

Check my blog here.

Cheers! :)

#How it works ?

CPT Lister should be called via shortcode [cpt_show]
CPT Lister receives the following arguments :

  1. type - This is where you say from which CPT you want to get your posts.
  2. post_status - This is used to tell the plugin for what posts it should look. Here you can use all of the available WordPress options.
  3. order - This tells the shortcode how to order the results. You can use all of the available WordPress options.
  4. order_by - This tells the shortcode by what your results should be ordered. You can use all of the available WordPress options.
  5. posts_per_page - This is used to tell the shortcode how many post should it collect. To get all of the posts that are available in the CPT just set its value to -1
  6. titles_as_links - This tells the shortcode if the titles of the listed posts should be links that are pointing to the specific page for every unique post. Possible values are 0 & 1. If the value is set to 0 it will print the title without wrapping it in HTML Link tag (), but if the value is set to 1 it will wrap the post title into HTML Link tag and it will point to the specific post page.
  7. show_post_content - This tells the shortcode if it should show the post content under their titles. Possible values are 0 & 1. If the value is 0 it won't show the post content under its title, but if the value is set to 1 it will list the post content also.
  8. cptl_title_link_class - This is used to tell the shortcode what class should be added to the Link Wrapper of the post title. By default it is cptl_title_link
  9. cptl_title_class - This tells the shortcode what class should be added to the Title Wrapper of the post title. By default it is cptl_title
  10. cptl_content_class - This is used to tell the shortcode what calss should be added to the Content Wrapper of the post content. By default it is cptl_content
  11. cptl_content_wrapper - This is used to tell the shortcode how wrap the listed results. It can be 'h1', 'h2', 'h3', 'h4', 'h4', 'h6', 'li', 'span', 'div'

cpt-lister's People

Contributors

gero0nikolov avatar gremlyn avatar d4mation avatar

Stargazers

Jamie avatar Ben Huson avatar

Watchers

James Cloos avatar  avatar

Forkers

d4mation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.