QuickCodes is an intuitive tool designed to simplify and accelerate the process of creating posts and archive pages
QuickCodes is an intuitive tool designed to simplify and accelerate the process of creating posts and archive pages in WordPress. By providing prompt and easy insertion of quickcodes, QuickCodes enables you to effortlessly display key content from your WordPress site on demand. This tool significantly improves your efficiency and productivity, allowing you to maintain a higher focus on crafting quality content rather than dealing with technical complexities.
QuickCodes is used in the WPCoder item HTML block.
If you use the tool QuickCodes in the WPCoder Pro plugin in HTML block, all shortcodes must be closed, as: [wp_code id=«1»][/wp_code]
QuickCodes has 4 main chapters with QuickCodes: General, Menu, Post/Page, Archive
General
{{obj.id}} – get the current object ID.
Get option
{{option.key_name}} – get option by name, where key_name is the option name.
For example:
{{option.blogdescription}} – Brief description of the site. By default: Just another WordPress blog
{{option.blogname}} – Site name.
{{option.home}} – Site url.
Languages
{{language.en_US}}{{/language}} – If you use the multi languages site, you can use this QuickCode for translated text or blocks. For example, {{language.en_US}}This is English Text{{/language}}{{language.es_ES}}Este es texto Span{{/language}}
Term
{{term.link.id}} – display link for a term with ID. For example: {{term.link.73}} display the link for the term with ID 73
{{term.name.id}} – display name for a term with ID
{{term.description.id}} – display description for a term with ID
{{term.count.id}} – display count of the posts for a term with ID
Empty
You can check if the variable like post.meta.id or option.kay_value is empty.
{{empty}}Your code{/empty} – This is a conditional QuocjCode for checking on the empty.
if the QuickCode {{option._wpcoder_tax_icon_35}} is empty – display empty string
if the QuickCode {{option._wpcoder_tax_icon_35}} is not empty – display QuickCode {{option._wpcoder_tax_icon_35}}
Get Post
You can get posts simply using the QuickCode {{get_posts}}Your format from chapter Post{{/get_posts}}. This code gets the posts by your params.
In {{get_posts}} you can use the next:
separate the dot – argument key
separate | – argument value. Argument value can be array like [2,4,6,7].
Get the 5 posts from the categories 27 and 32:
Menu
{{menu.menu_id}}{{/menu}} – You can use this QuickCode for creating the menu or other lists with the links. But the first you need the create a menu. then you can use the next construction in the WP Coder Items in HTML:
You can use the next QuickCodes in {{menu.menu_id}}{{/menu}}:
{{item.label}} – get menu item label (text),
{{item.link}} – get menu item link
{{item.title}} – get menu item attribute title
{{item.description}} – get menu item description
{{item.class}} – get menu item class
You can use the next QuickCodes in {{menu.menu_id}}{{/menu}}:
{{item.label}} – get menu item label (text),
{{item.link}} – get menu item link
{{item.title}} – get menu item attribute title
{{item.description}} – get menu item description
{{item.class}} – get menu item class
Post/Page
{{post.title}} – display post/page title,
{{post.excerpt}} – display post/page excerpt,
{{post.content}} – display post/page content,
{{post.comments}} – display post comments block,
{{post.image}} – display post/page featured image
{{post.link}} – display current post/page link
{{post.cat_name}} – display post category name. Display the first category of the post
{{post.cat_link}} – display the first category link
{{post.cat_count}} – display the first category posts count
{{post.author_name}} – display post author name
{{post.author_bio}} – display post author bio
{{post.author_avatar}} – display posts author avatar with size 96 px
{{post.author_link}} – display posts author link
{{post.publish_datetime}} – display the post published date in format data time, for using in HTML tag