Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new shortcode attribute to limit no. of items shown #59

Merged
merged 3 commits into from May 4, 2018

Conversation

Joel-James
Copy link
Contributor

Having one attribute to limit no. of items shown under a section is a good idea. Because if one section has 10 docs and another section has 3, that doesn't look good (http://www.clipular.com/c/4600533885911040.png?k=SLjoisnTJ2GYw0gHKpN7z3pdmtU). If we can limit maximum items shown to 3, the UI wise, that will look good.

@Asgaros
Copy link

Asgaros commented Apr 15, 2018

This - or some global option in the settings - would be very useful. Hope it gets implemented into the core of the plugin soon!

@tareq1988
Copy link
Member

As the default posts_per_page in WP_Query is 10, setting it to -1 would be change of default behaviour on how it's handled right now. Changing the items to 10 would be nice and will be ready for merge.

Thanks for the pull request 👍

@Joel-James
Copy link
Contributor Author

@tareq1988 done 👍

@tareq1988 tareq1988 merged commit bce8b28 into weDevsOfficial:develop May 4, 2018
tareq1988 added a commit that referenced this pull request Aug 24, 2018
= v1.4 (25 August, 2018) =

 * **New:** Added new shortcode attribute (<code>items</code>) to limit no. of items shown. [#59](https://github.com/tareq1988/wedocs-plugin/pull/59/files)
 * **New:** Added a new filter <code>wedocs_email_feedback_to</code> for outgoing mail to address. [#63](#63)
 * **New:** Added theme wrapper support. Now developers will be able to put dynamic start and end divs and tags in the <code>single-docs.php</code> template.
 * **New:** Show 3rd level doc in the admin UI builder.
 * **New:** Added automatic anchor tags in docs for <code>h2</code> and <code>h3</code> tags. Bookmarking is now very easy! Thanks to [anchorjs](https://github.com/bryanbraun/anchorjs/).
 * **Fix:** Bug with quotes in the doc title. [#66](#66)
 * **Improved:** Flush rewrite rules after plugin activates. Fixes the long time permalink issues with 404.
 * **Improved:** Disable page scrolling when the feedback modal is open.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants