The Most Powerful Solution for WordPress短码

  1. 什么是短码?
  2. 如何创建短代码?
  3. 使用特殊插件


什么是短码?

Shortcodes were introduced into WordPress v2.5. They can be compared to the shortcuts to the executable files in Windows, which refer directly to the “.exe”文件. 在WordPress中, you can create the script code once, and it will be later called through a shortcode from a post or WordPress theme. Let’s say you wrote a script that returns the list of the most popular posts in any category and created a shortcode to execute it.

Now you can use it anywhere on the site to display this list. This feature allows you to save time when using WordPress.



如何创建短代码?

You can create them in WordPress in two ways:

  1. Create a function and register it in the “functions.php”文件. To understand more deeply how to write them you can by reading official 商家API. The information there is pretty clear.
  2. 使用特殊的插件.


wordpress主题

使用特殊插件

WordPress短码

There’s a very powerful plugin for WordPress. With the help of it you can:

  • 插入扰流板 & 锚;
  • 创建选项卡;
  • 使用列;
  • Work with media (YouTube, Vimeo, etc.);
  • 插入按钮;
  • 添加动画;
  • Make quotes, frame blocks, etc.
  • 创建lightbox;
  • 嵌入RSS源;
  • 添加表;
  • 组织滑块;
  • 制作二维码;
  • 创建旋转木马.
WP Shortcodes Plugin — 商家最终
WP Shortcodes Plugin — 商家最终
开发人员: Vova Anokhin
价格: 免费的

下载 and install the plugin 商家最终WordPress库. After installation, I suggest starting with the section “Examples”. Each section of the examples can be opened and viewed in a variety of variations. Click the “Insert Shortcode” button in the editor to open the selection window. Now find out 从 proposed options what you want to insert into the post. Then fill in all the required info and click the corresponding button.

Here are some examples of what you can create:

  • 按钮;
  • 扰流板;
  • 标签;
  • 报价;
  • 笔记;
  • 滑块;
  • 画廊.

Now let’s see what is available in the plugin settings section.

“Special formatting” is enabled by default. It, based on the official documentation, replaces the original “wp_autop filter”, which doesn’t allow the tag “paragraph” around the shortcodes. In principle, it’s necessary to maintain the plugin functionality. But if you don’t use columns, then you can disable this feature. “跳过默认值”. If this option is enabled, the default attributes won’t be inserted if they haven’t been changed. The exception is the attribute of the main text. “短码前缀”. Here you can specify any prefixes.

自然, the prefix will be applied only to subsequent inserts, 所以要小心, because all previous shortcodes will stop working after making changes. 在总, this plugin includes more than fifty different variants that will increase the productivity of your WordPress的网站 and will help solve a lot of various tasks.


wordpress插件

读也

The Easiest Way to Add Shortcodes to a WordPress Sidebar?

Developing a Basic WordPress Plugin Using Shortcodes

Elementor or Visual Composer: What WordPress Page Builder Is Better?

In-Depth Introduction to WordPress短码 or How to Build a Website Screenshot Generator

Best Product Launch WordPress Themes



Don’t miss out these all-time favourites

  1. 最好的 举办 用于WordPress网站. Tap our link to get the best price on the market with 82% off. If HostPapa didn’t impress you check out other 选择.
  2. Website Installation service - to get your template up and running within just 6 hours without hassle. No minute is wasted and the work is going.
  3. 一个会员 - to download unlimited number of WordPress themes, 插件, ppt and other products within one license. Since bigger is always better.
  4. 现成的网站服务 is the ultimate solution that includes full template installation & 配置, 内容集成, implementation of must-have 插件, security features and Extended on-page SEO optimization. A team of developers will do all the work for you.
  5. 必备的WordPress插件 - to get the most essential 插件 for your website in one bundle. All 插件 will be installed, activated and checked for proper functioning. 
  6. Finest Stock Images for Websites -创造惊人的视觉效果. You’ll get access to Depositphotos.com to choose 15 images with unlimited topic and size selection.
  7. SSL Certificate Creation service - to get the absolute trust of your website visitors. Comodo Certificate is the most reliable http protocol that ensures users data safety against cyber attacks. 
  8. Website speed optimization service - to increase UX of your site and get a better Google PageSpeed score.

安东Vosko

Being a part of the Templateog体育首页 team is a great pleasure. I write about templates, marketing secrets, presentation tips, and different CMS. Hope my articles will be useful to you. If yes - please leave me a comment. Besides that, you can also meet me on Quora.

在你的电子邮件中添加更多内容

订阅 to our newsletter and access exclusive content and offers available only to og体育首页Post subscribers.

发送成功!
服务器错误. 请稍后再试.

留言回复