Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


wordpress re-use a block of content

Posted on 2011-05-09
Medium Priority
Last Modified: 2012-05-11

Hi guys,

I hope someone can suggest the best way to do this?

I have box of content I have designed using CSS. This box contains text and few graphic buttons. It’s simply made to increase the visitor interest.

I am using WP 3. I would like to know how is it possible to inject/call the box within a page in page editor.

For example: I create a page and write its text w in page editor then I would like to simply call/insert the this box using a function or whatever.

I simply need to use this box and re-use everywhere I want in any of the pages.

Question by:Refael
LVL 70

Accepted Solution

Jason C. Levine earned 1000 total points
ID: 35721885
Hi Refael,

You are basically talking about writing a plugin that inserts the content whenever you want it, probably via a shortcode.  It's certainly possible but requires that you have a fair amount of WordPress and PHP knowledge.

Start your research here:

LVL 31

Assisted Solution

gwkg earned 1000 total points
ID: 35721930
Try this plugin, I haven't used it but it looks like it'll create the shortcode for you so you can use

[include-page id="123"]


Author Comment

ID: 35722571
Thanks Guys,

i followed this link: http://net.tutsplus.com/tutorials/wordpress/wordpress-shortcodes-the-right-way/
and it works fantastic with shortcodes. thank you!

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to install BuddyPress on your self-hosted WordPress site It’s been called everything from “social networking in a box” to “Facebook without the terms of service,” but until Feb. 16, BuddyPress was a relatively unknown outside the WordPress MU…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

579 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question