Git Product home page Git Product logo

list-category-posts's Introduction

List Category Posts

Code Climate Travis CI

List Category Posts is a WordPress plugin that allows you to list posts from a category into a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, and the number of posts to display. You can use [catlist] as many times as needed with different arguments.

Usage: [catlist argument1=value1 argument2=value2]

Please visit the plugin's page on WordPress.org to find out more.

Want to help with the development?

The evolution of this plugin wouldn't be possible without the help of these awesome contributors. Special thanks to Sophist and bibz for the hard work ๐Ÿ‘

Currently the plugin is mostly being developed through code contributions by its users. If you know PHP and would like to start contributing to the plugin, let me know! I can help you get started. Contact me here.

Development

A Vagrantfile is provided to set up a box for WordPress development. You need Vagrant installed on your computer.

Fork the repo, clone it locally and do vagrant up. You'll have a WordPress instance running on http://127.0.0.1:8080/.

WordPress is installed with this information:

  • Database Name: wordpress
  • User Name: wordpressuser
  • Password: wordpresspass

You can access the admin dashboard with the following credentials:

  • Admin user: adminuser
  • Admin password: adminpass

Activate the plugin on http://localhost:8080/wp-admin/plugins.php

The plugin code is linked directly on the box, so any change you make on the code is reflected automatically on the Vagrant box's WordPress.

Testing

PHPUnit has been setup by bibz, you can run phpunit on the Virtual Machine:

vagrant@vagrant-ubuntu-precise-32:/vagrant$ phpunit
Installing...
Running as single site... To run multisite, use -c tests/phpunit/multisite.xml
Not running ajax tests. To execute these, use --group ajax.
Not running ms-files tests. To execute these, use --group ms-files.
Not running external-http tests. To execute these, use --group external-http.
PHPUnit 4.7.3 by Sebastian Bergmann and contributors.

.

Time: 3.11 seconds, Memory: 46.25Mb

OK (1 test, 12 assertions)

The code needs lots of refactoring and probably some more documentation to be able to write some more relevant tests. This is a task where you can really help the development of the plugin if you're interested in contributing.

Usage

[catlist argument1=value1 argument2=value2]

Support the plugin

If you've found the plugin useful, consider making a donation via PayPal or visit my Amazon Wishlist for books or comic books :)

License

GPLv2

List Category Posts

Copyright (C) 2008-2016  Fernando Briano (email : [email protected])

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

list-category-posts's People

Contributors

picandocodigo avatar bibz avatar sophist-uk avatar cfoellmann avatar ericsandine avatar mhoeher avatar ottadvantage avatar shesek avatar nikolausdemmel avatar nuss avatar htrex avatar itpcc avatar zulkamal avatar kenshin23 avatar aurodigo avatar calcimicium avatar mmatthews1981 avatar oloz17 avatar jremes-foss avatar caroig avatar thomasweise avatar zxw0982000 avatar

Watchers

James Cloos avatar

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.