Download the PHP package whitefiredesign/wp-stick-posts-to-term without Composer

On this page you can find all versions of the php package whitefiredesign/wp-stick-posts-to-term. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-stick-posts-to-term

Stick Posts To Term

Contributors: bambattajb Tags: categories, post Requires at least: 4.4.2 Tested up to: 4.4.2 Stable tag: 1.0.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html

Description

This adds simple term-specific sticky posts functionality I created this plugin because I wanted to give the content manager flexibility to be able to set sticky posts to any category or taxonomy term.

It is more of a developer tool. It will not just work 'out of the box'. You need to add code in the theme template files to get it to work.

This is mostly an adaptation of @tommcfarlin plugin Category Sticky Post https://en-gb.wordpress.org/plugins/category-sticky-post/. Tom, I borrowed some of your code as well; I hope you don't mind. Cheers mate :)

Tom's plugin actually does just work 'out of the box' if you're looking for something simple to display sticky's on a per-category basis.

Usage

When the plugin is installed, a meta box is created in the edit-post screen labeled Category Sticky. When the content manager assigns categories or taxonomy terms to the post, this will populate with all the possibilities for where they can stick this post.

To render this on the front end, we use the following static method

This returns the following

Examples

Use in Category Template

Because the category template might will probably just have a basic loop, we need to add args on the fly

Use in Taxonomy Template with new WP_Query

Say we wanted to return 2 stickies in the current term and wanted to remove those returned posts from another custom WP_Query

Version History

1.0.3 Fixed get_stickies('query') argument returns full results when no IDs found Fixed get_stickies('query') returns more results than expected

1.0.2 Added new function StickyPost::get_stickies([string] $type='ids', [string] $tax = false, [int], $term = false)

1.0.1 Added composer support

1.0.0 First release

0.0.3 Added new argument post_types to StickyPost::query Changed name from stick posts to category to stick posts to term

0.0.2 Added sticky filter in posts table Added options page to turn on/off taxonomies for post types

TODOS


All versions of wp-stick-posts-to-term with dependencies

PHP Build Version
Package Version
Requires php Version ^5.3.3 || ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package whitefiredesign/wp-stick-posts-to-term contains the following files

Loading the files please wait ....