Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
1480279
Added APL Design implementation
EkoJR Jun 3, 2017
1c39646
Changed Presets to Post List post data
EkoJR Jun 5, 2017
9c4d793
Added Filter Meta Box
EkoJR Jun 12, 2017
7e2b3c5
Added Designs Meta Box
EkoJR Jun 13, 2017
71db7b7
Sniff & Clean Up
EkoJR Jun 13, 2017
928d041
Added functionality to Save and Load Post Lists
EkoJR Jun 19, 2017
00da12e
Added post transitions methods for Post List & Design
EkoJR Jun 20, 2017
b98db37
Added Custom Columns to 'All' admin page
EkoJR Jun 20, 2017
b9aa065
Changed Frontend functionality following database changes
EkoJR Jun 23, 2017
78ea6ca
Added Settings API
EkoJR Jun 26, 2017
350d2a5
Fixed Dev Bugs with imported data
EkoJR Jun 26, 2017
86d23d1
Added changes to Updater class
EkoJR Jun 27, 2017
678abfe
Hotfixes with meta boxes & importing empty message
EkoJR Jun 28, 2017
b1a2fd3
Fixed loosing object reference/pointer
EkoJR Jun 30, 2017
06e402f
Added term slug array as a reference for term ids
EkoJR Jul 4, 2017
33f252c
Fixed importing invalid configured post lists
EkoJR Jul 4, 2017
78ba70e
Hotfixes from alpha testing.
EkoJR Jul 4, 2017
e156d6a
Fixed saving multiple callbacks when saving post objects
EkoJR Sep 18, 2017
abb7bae
Fixed de/activation/uninstall hook
EkoJR Sep 19, 2017
8ba4b4a
Changed taxonomy panels ui to switch to active tabs
EkoJR Sep 23, 2017
64bf2ff
Fixed PHP Noticed with undefined variable
EkoJR Sep 23, 2017
73b6622
Added help & info
EkoJR Oct 12, 2017
c42ed75
Added jQuery Compatability
EkoJR Oct 13, 2017
5e3d999
Added Offset option to filter
EkoJR Oct 13, 2017
1739ee8
Fixed missing tooltip
EkoJR Oct 13, 2017
59245cd
Added changes to changelog
EkoJR Oct 13, 2017
34329be
Changed CPT Menu Page to Custom Menu Functionality
EkoJR Oct 18, 2017
10a7a3f
Depricated Objects
EkoJR Oct 18, 2017
b95f91d
Fixed importing same version, and refined code.
EkoJR Oct 19, 2017
6384d3b
Added Tooltips and Info to Settings Page
EkoJR Oct 19, 2017
330b2bd
Added Ignore Post Types setting when displayed on Add New
EkoJR Oct 19, 2017
60808f4
Added improved admin encapsulation
EkoJR Oct 20, 2017
bacf4b6
Changed a style in the Info Metabox Layout.
EkoJR Oct 20, 2017
e6d7164
Documentation and CodeSniffing
EkoJR Oct 20, 2017
95957c5
Added WPML Support/Compatability #96
EkoJR Oct 24, 2017
39dbad0
Added WPML Hotfixes #96
EkoJR Oct 24, 2017
0726a89
Changed php_function shortcode
EkoJR Oct 29, 2017
0805c6a
Fixed links attribute in post_categories shortcode
EkoJR Oct 29, 2017
2dcc213
Fixed links attribute in post_tags shortcode #98
EkoJR Oct 29, 2017
cf40da4
Changed Info Metabox
EkoJR Oct 29, 2017
ee5b453
Added changes to Changelog & Upgrade Notice
EkoJR Oct 29, 2017
c5a4aee
Updated POT Translation File
EkoJR Oct 29, 2017
e27212c
Added en & nl PO files
EkoJR Oct 29, 2017
738a20a
Changed Version to 0.4.0
EkoJR Oct 29, 2017
f3eb517
Changed Version Check to RC version
EkoJR Oct 30, 2017
b9dc24d
Fixed warnings in Upgrade class
EkoJR Oct 30, 2017
fe29e55
Fixed missing Post Parent when Updating
EkoJR Oct 30, 2017
0c88240
Fixed Updating with Cache
EkoJR Oct 30, 2017
7916ef4
Added improved automated version backup
EkoJR Oct 30, 2017
2bfa28a
Updated Translations
EkoJR Oct 31, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#################
## CUSTOM
#################

*.bk*

#################
## Eclipse
#################
Expand Down
74 changes: 74 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,79 @@
== Changelog ==

= 0.4.0 =
* Added APL_Post_List Class for post data database structure with presets.
* Added APL_Design Class for post data database structure with preset designs; before, content, after, & empty message.
* Changed Preset data to use post data database structure (APL_Post_List & APL_Design).
* Added Admin Singleton Class.
* Changed to Custom Admin Menu.
* Added New Admin templates and multiple UI changes.
* Changed Info/Help to Tooltips instead of Dialogs.
* Added Post_Type filter by 'Any'.
* Changed 'Require Taxonomy' to 'Require Taxonomies' as a Post Type based filter instead.
* Added Sort by 'None' and 'Slug'.
* Added Post Status filter by 'None' and 'Any'.
* Added Perms filter by 'None'.
* Added Offset filter.
* Added additional Notice to front-end if attribute 'name' in [post_list] is invalid or missing.
* Added Sanitazion to shortcode attribute 'name'; ex. [post_list name=""].
* Fixed Link attribute in post_category & post_tags shortcode.
* Added additional checks with php_function shortcode.
* Changed General Settings to Settings API w/ Meta Boxes.
* Added Ignore Post Types on Admin Post List screen.
* Changed/Fixed Exporting and Importing.
* Fixed possible defect with Plugin Options not being initiated.
* Added jQuery (UI) compatability.
* Removed jQuery UI Theme setting from APL Options.
* Changed Updater Class param items to update to an array.
* Changed version check to a hook method.
* Added WPML Support.
* Added Internalization for translations.
* Added non-class Functions file for common functions.
* Added hooks.php file to store custom hook examples.

= 0.3.7 =
* Fixed warning with load_plugin_textdomain.

= 0.3.6 =
* Added load_plugin_textdomain and .pot files.

= 0.3.5 =
* Fixed [post_excerpt] breaking last word.
* Fixed [post_excerpt length=""] not trimming if post excerpt is found.
* Fixed [php_function] Undefined Constant with KALIN_ALLOW_PHP when APL_ALLOW_PHP is defined.
* Added [post_title length=""] attribute.

= 0.3.4 =
* Fixed [final_end] not updating output string.

= 0.3.3 =
* Fixed [final_end] missing a param.
* Fixed Undefined index: post__not_in.
* Added initial Localization to prep support for multiple languages.

= 0.3.2 =
* Changed Internal Shortcodes to a Class Object as a Shortcode API.
* Changed support to Internal Shortcode to allow Attributes to be added in any order.
* Added attributes aliases user_name & user_description for the Labels attribute in [post_author].
* Removed attribute labels that no longer exist in WP for the Labels attribute in [post_author].
* Added custom max size support for the Size attribute in [post_thumb].
* Fixed extract to correctly grab img tags for the Extract attribute in [post_thumb].
* Fixed encoding when creating an excerpt from post/page content in [post_excerpt].
* Added [post_type] shortcode, and label attribute.
* Added error check in [item_number].
* Added check if other plugin is active in [post_pdf].
* Added APL_ALLOW_PHP constant as a required varible for [php_function].
* Removed APLCallback Class Object file.
* Changed Dialog location for Internal Shortcode to a seperate file.
* Added more encapsulation to initializing other class files.

= 0.3.1 =
* Added Assets.
* Added Icon to Assets.
* Changed Screenshots directory to Assets folder.
* Updated jQuery MultiSelect UI Widget files version 1.14 to 1.16.
* Fixed [post_terms] grabbing a wrong param.

= 0.3.0 = 08/29/2016
* Fixed error 'Un-Defined Variables and Non-Objects' with Excluding Duplicates.
* Fixed List Amount '-1' Returning Nothing.
Expand Down
174 changes: 78 additions & 96 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,98 +1,80 @@
=== Advanced Post List ===
Contributors: EkoJr
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=2E6Z4VQ6NF4CQ&lc=US&item_name=Wordpress%20%2d%20Advanced%20Post%20List&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
Tags: Advanced, Post List, Categories, Category, Children, Children Pages, Content, Custom, Custom Post Type, Custom Post Types, Custom Taxonomy, Custom Taxonomies, Draft, Draft Posts, Excerpt, Filter, Future, Future Posts, Links, List, Links, News, Page, Pages, Parent, Parent Pages, Popular Posts, Post, Posts, Private, Private Posts, Related, Related Posts, Recent, Recent Posts, Shortcode, Shortcodes, Simple, Tag, Tags, Thumbnail, Widget, Widgets
Requires at least: 2.0.2
Tested up to: 4.6
Stable tag: 0.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create custom post lists to display various content. Easy to use Filter & Design
as well as highly configurable and extensive.
Post List builder with highly customizable filter & custom designs. Whether it's displaying Recent Posts, Related Posts, Dynamic Posts, or a list of posts in general.

== Description ==
[wordpress forum]: https://wordpress.org/support/plugin/advanced-post-list
"Default WordPress Support"
[wordpress kalins post list]: http://wordpress.org/extend/plugins/kalins-post-list/
"Kalin's Plugin"
[github issues]: https://github.com/EkoJr/wp-advanced-post-list/issues
"Ticket Handling"
[github wiki]: https://github.com/EkoJr/wp-advanced-post-list/wiki
"Contribute or Learn about APL"

Highly customizable plugin for designing a large variety of post lists. Allowing
the Webmaster to create any design for displaying Recent Posts, Related Posts,
Future Posts, etc., and easily positioning it with a shortcode inside a Page or Post.
All that is required is you know HTML, but the plugin can also use CSS,
JavaScript, and PHP.

Version 0.3 post query was switch to WP_Query to take advantage of the Custom Post
Types and Taxonomies featured within WordPress, and also has additional filter settings
added to further reach alternate methods of displaying posts.

APL's Documentation/Wiki is located on [GitHub Wiki][github wiki].

Discovered a bug or an enhancement? Please submit thread/ticket at
[WordPress][wordpress forum] or [GitHub Issue Tickets][github issues].

When designing site with better navigation. This plugin accomplishes 3 main
tasks when displaying the site’s content through various lists.

**Content of the post list**

* **Custom Post Type and Taxonomy Support** – New addition adds the ability to
add even more posts and/or pages to your lists. Display any page from any
post type and has even more filter options with any additional taxonomies that
have been added.
* **Add/Require Any Number of Terms** – Create diverse post lists through any
configuration of terms within different taxonomies, and show any posts/pages
that has one related term, but if needed, post lists can be required to have
all terms selected.
* **Show Page Children** – Once only able to display one page’s children pages
from one hierarchical post type (WP built-in Pages). This plugin can now display
multitude of children pages from multiple pages from multiple hierarchical
post types. Making it easy to display sub-pages
* **Dynamically Add Terms and Page Parent** – Sometimes pages are expected to
change, and some area’s like the header, footer, and any sidebars are expected
to change. So it’s just plain simple and nice to have one configuration that
changes according to the visitor’s/user’s current page/post.
* **Show Content from Private, Future, Published, and More** – A new addition
added to show posts/page from not only publicly published posts/pages, but from
any status. Opening up the ability for creating private sections on a website
for users.

**Style of the post list**

* **Customizable Loop** – Any plugin of this design has to have a loop of some
kind to list the posts and/or pages. Most have their own style of design, but
this plugin gives the webmaster the tools to create his own style.
* **Shortcodes for Post/Page Content** – Part of the heart of the Customizable
Loop, shortcodes have made it possible to pull content from each post/page and
add it to the post list.

**Location of the post list**

* **Post List Shortcode** – User friendly method of adding any post list to a
section of a site.
* **PHP Hardcode** – Add post lists where some situations require a more
technical use where WordPress features and functions aren’t fully present.
* **Sidebar Widget (Coming soon)** – Originally was removed until 0.3 was
developed. Shortcodes have made it easy to add post lists to a text sidebar,
but there’s still plans to take full advantage of implementing the widget class.


This is an alternate version of [Kalins Post List][wordpress kalins post list]
which was unfortunately declared abandoned. Most of the credit for creating an
extraordinary plugin like this goes to Kalin. Currently, the plugin is still in
the first stages of its target design. Version 1.0.0 will feature many of the
functionalities that Kalin and others have mentioned, and will have a completely
new layout to accommodate for the extra tools that will be added.


**Pre-Release Projects for Version 1.0.0**

* **(Completed)** Import/export - Export is broken until 0.3 stable (including importing data from Kalins Post List)
* **(Completed)** Custom Post Type & Taxonomies Support. Available in the 0.3 release.
* Additional sort methods for 'Orderby' combo box.
* Additional shortcodes.
[apl getting started]: https://support.advancedpostlist.com/getting-started/
"Getting Started w/ APL"
[apl qa]: https://support.advancedpostlist.com/qa/
"Questions & Answers"
[apl docs]: https://support.advancedpostlist.com/documentation/
"APL Documentation"
[apl shortcodes]: https://support.advancedpostlist.com/doc/internal-shortcodes/
"List of Internal Shortcodes"
[wp apl support]: https://wordpress.org/support/plugin/advanced-post-list
"WordPress.org - Support for APL"
[github issues]: https://github.com/Advanced-Post-List/advanced-post-list/issues
"Report an Issue"
[github wiki]: https://github.com/Advanced-Post-List/advanced-post-list/wiki
"Learn or Contribute to APL"

This tool functions much like a Post List builder to give Admins the most amount of control over managing content to display. Developed with Web Designers & Developers in mind, makes this a highly customizable tool to have around. However, there is a sharp learning curve for most.

You must know:

* HTML
* CSS
* _(Optional)_
* JavaScript
* PHP

## Summary

Advanced Post List (aka APL) is designed to operate much like The Loop in WordPress; which is most notable in Themes. However, that concept is taken and turned into an Admin tool that can easily be changed, moved, or added/removed. This eliminates much of the backend work, and prevents being limited to what is hardcoded into a theme.

This also makes multiple Featured Content with different configurations more of a breeze, and the complexity of it is a challenge that APL achieves unlike any other.

APL can accomplish a large degree of variations, but can be broken down to 3 main types of tasks. With Filter, Design, and Placement, here are some of the key features.

### Filter

* **Custom Post Type and Taxonomy Support (CPT)** - Displays Posts/Pages from custom post types, taxonomies, and terms. This includes other plugins with post data. but may store its data differently than post_content. (**Advanced Users, see php_function shortcode.**)
* **Enhanced/Diverse Queries** - Capable of diverse filter configuration when displaying posts. This feature allows...
* Cross Filtering with Custom Post Types.
* Diverse Post Types -> Taxonomies query configurations.
* Multiple Query configurations with include and require.
* **Optimized with Complex Queries** - Once deemed an Achilles Heel to WP Query, steps are taken to reduce the server load as much as possible.
* **Dynamic Filters** - Grabs values to filter by based on the current posts/pages being viewed. _Ex. Displaying Related Posts in a Header, Footer, Sidebar, etc.._
* **Show Content from Published, Private, Future, etc.** - This is a *development feature* and may not provide intended results. Display content on the frontend so users don’t have to navigate to the admin side. Allowing private landing pages to be created. _Note: Requires advanced knowledge on how WP Query and User Perms operate._


### Design

* **Layout and Style 99.9% Customizable** - There's nearly no limitations to the design, with some exceptions that may surface with (Child) Theme's CSS. This does require some knowledge in Web Design. *Note: This is NOT to be confused with Drag and Drop UI/UX.*
* **Internal Shortcodes** - Adds various data from Post object, and is one of the extensive features. Being able to extend to shortcodes with custom PHP functions make the possibilities practically limitless. [See full list & details][apl shortcodes].
* **Encapsulated for Zero Conflicts** - With a large number of shortcodes on any given site. Isolating Internal Shortcodes to its own instance eliminates any plugin conflicts.
* **Custom Formats to Loop ( The Loop )** - Themes follow this concept, but APL turns that concept into a tool. The “List Content” loop, as well as the before & after, is where most of the work is done with preset HTML, CSS, JS, & PHP designs. It is also optional to set an Empty Message (No Posts Found) to display.

### Placement

* **Post List Shortcode** - User friendly method of adding Preset Post Lists to a section of a page.
* **Sidebar Widget** - Easier to use. However, adding post list shortcodes to the text sidebar also produces the same results.
* **PHP Hardcode** - For more extensive design work. There is a public function for displaying Preset Post Lists where WordPress support and functions for admins aren’t fully present.

## Other Plugins Tested/Supported

There's various plugins that offer a unique capability, and some of which APL can use as intended, but there are also some don't. Here is a list of popular plugins that have been tested and verified by Advanced Post List.

* **Advanced Custom Fields** - Requires php_function shortcode.
* **WPML** - With WordPress Multilingual installed, additional Designs can be created for rendering a Post List in different languages. Posts/Pages are handled automatically and will display content in various languages.

APL is open to development requests and welcomes those willing to report on any issues.

## Help & Support

Currently, information can be found in 2 different locations. This is due to recent changes, and is only temporary.

* [Getting Started][apl getting started]
* [Documentation][apl docs]
* [Internal Shortcodes][apl shortcodes]
* [GitHub Wiki][github wiki]

Questions/Bug Report submit thread / ticket at [WordPress][wp apl support] or [GitHub Issue / Tickets][github issues].
Loading