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

Update display-posts-shortcode.php #251

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

turbodb
Copy link

@turbodb turbodb commented Jan 7, 2025

Added include_unpublished_links arg to shortcode and implemented it.

include_unpublished_links does the following:

  • false (default) - does not output <a href=...> for listing-items where post_status <> 'publish'; true - outputs <a href=""...> for all post_status
  • adds the post_status as a css class on title and image items, for styling
  • affects title, image, and excerpt_more_link

Added include_unpublished_links arg to shortcode and implemented it.

include_unpublished_links does the following:
* false (default) - does not output <a href=...> for listing-items where post_status <> 'publish'; true - outputs <a href=""...> for all post_status
* affects title, image, and excerpt_more_link
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.

1 participant