이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Include Content By Shortcode

설명

This plugin allows the user to add single content in multiple posts and pages by means of a shortcode. It is used to fulfill the concept of PHP’s ‘include’ function. It can add HTML, CSS and JS also by using just a simple shortcode.
For example, my brand’s tagline, “The Best Of Its Kind” set to be used on various pages and posts, I would add that in Included Content and it will generate a shortcode against this content. This generated shortcode will now be placed everywhere I want to add my tagline. While adding the content, CSS and JS may also be added which will be included along with the HTML content, wherever the shortcode will be pasted.
Now in future, if I would change my tagline, I would need to change it only in Included Content and it will change it everywhere the shortcode was used.

스크린샷

  • Add a content
  • Copy the shortcode generated for that content
  • Paste the shortcode in any post or page
  • The included content will appear where the shortcode would be pasted

설치

  1. Upload “include-content-by-shortcode” to the “/wp-content/plugins/” directory.
  2. Activate the plugin through the “Plugins” menu in WordPress.

FAQ

What will be the shortcode?
[includedcontentbyshortcode id=9999] will be the default shortcode with 9999 being replaced with the Included Content ID. The shortcode may be simply copied from Included Contents page against your post.

Can I use Included Content’s slug in shortcode instead of the id?
Yes, instead of the id, slug may also be used like this: [includedcontentbyshortcode slug=MY_CONTENT_SLUG_HERE].

What if I dont’t want to included custom CSS or JS on a specific page?
If you don’t want to add the custom CSS written in Included Content on a specific page, you may pass the css parameter false in the shortcode like this: [includedcontentbyshortcode id=9999 css=false]. Similarly, if you don’t want to add the custom JS written in Included Content on a specific page, you may pass the js parameter false in the shortcode like this: [includedcontentbyshortcode id=9999 js=false].

후기

2021년 3월 20일 9 replies
Hello, This plugin is exactly what I'm looking for, thank you very much, but do you plan to update for a long time? Best Regards
2021년 2월 15일 1 reply
I manage many seasonal hotel and vacation rental sites. The low, mid, and high season dates change from year to year but are the same for all offerings at each property. With this plugin I create a shortcode containing the dates of each seasonal period and insert it in each price table. When I modify the dates in the plugin they are updated also in all tables. Excellent! Thank you very much!
2018년 6월 7일
I’ve been using it on multiple sites. It helps me managing website a lot. A lot of sections are used in multiple pages. Using these sections through shortcode helps me synchronisation among the same sections throughout the website.
모든 4 평가 읽기

기여자 & 개발자

“Include Content By Shortcode”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Include Content By Shortcode”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

0.4.1

  • Custom Meta Boxes Enabled

0.3.0

  • Rich editor enable disable option added

0.2.1

  • Slug parameter also added in shortcode

0.1

  • CSS and JS options added.
  • FAQs added to plugin directory page

0.0.9.6

  • File-wise coded structure.
  • Meta boxes for CSS and JS added.

0.0.9.3

  • Updated readme files
  • Installation instructions and screenshots added to plugin directory page.

0.0.9

  • First Release