Current Post

Description

This is a shortcode to display current post information. For example, you can use this shortcode below quote, so you can screenshot and share easily, your quote and link of the post.

Features

  • Available information to display:
    POST
    ID, post_author, post_author_link [+ 1.0.1], post_author_nick_link [+ 1.0.1], post_date, post_date_gmt, post_content, post_title, post_excerpt, post_status, comment_status, ping_status, permalink, permalink_link, address_bar_permalink [+ 1.0.8], address_bar_permalink_link [+ 1.0.8]
    TIME
    now [+ 1.0.2]
    BLOG
    blog_name [+ 1.0.7], blog_description [+ 1.0.7], blog_wpurl [+ 1.0.7], blog_wpurl_link [+ 1.0.7], blog_url [+ 1.0.7], blog_url_link [+ 1.0.7], blog_charset [+ 1.0.7], blog_language [+ 1.0.7], blog_atom_url [+ 1.0.7], blog_atom_url_link [+ 1.0.7], blog_rdf_url [+ 1.0.7], blog_rdf_url_link [+ 1.0.7], blog_rss_url [+ 1.0.7], blog_rss_url_link [+ 1.0.7], blog_rss2_url [+ 1.0.7], blog_rss2_url_link [+ 1.0.7], blog_comments_atom_url [+ 1.0.7], blog_comments_atom_url_link [+ 1.0.7], blog_comments_rss2_url [+ 1.0.7], blog_comments_rss2_url_link [+ 1.0.7]
    AUTHOR
    author_description [+ 1.0.7], author_display_name [+ 1.0.7], author_first_name [+ 1.0.7], author_last_name [+ 1.0.7], author_nickname [+ 1.0.7]
    TOC
    toc (table of content) [+ 1.0.2, e 1.0.3: with link to TOC in the bottom of the page, e 1.0.8 smart link to TOC], toc_without_back [+ 1.0.3], toc_neighbour_by_id [+ 1.0.3, e 1.0.4 with post title], toc_neighbour_by_url [+ 1.0.3, e 1.0.4 with post title]
  • Add label for information to display [+ 1.0.2]

Catalogue

Current Post

Testing History

Testing History

Example

[currentpost type=”permalink, post_date”]
Result Example:
https://example.org 2021-01-01 00:00:00

[currentpost type=”post_author_nick_link”]
Result Example:
[bst]

[currentpost type=”post_author_nick_link” label=”This is the sample of post_author_nick_link”]
Result Example:
This is the sample of post_author_nick_link [bst]

[currentpost type=”toc_neighbour_by_id” label=”1″]
Result Example:
* This is Heading
* This is another Heading
* This is Heading in page 2
* This is Heading in page 3
* This is another Heading in page 3

Bugs Fix

= 1.0.3
* Fix Missing closing UL in toc

= 1.0.5
* Fix Wrong URL of toc of neighbour link

= 1.0.6
* Remove space in the URL in the toc

= 1.0.8
* No link to anchor if URL of address bar different from permalink (smart link to TOC)

= 1.0.9
* Add indentation in TOC based on heading level
* Fix TOC if post use page break(s)

= 1.0.10
* Change the_author to get_the_author
* Fix now
* Fix style of link to TOC

Screenshots

  • Screenshot and share quote easily

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Current Post” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Current Post” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.