Tea Page Content

Tea Page Content

Wordpress plugin

Install on Wordpress

App Details

Tea Page Content is a powerful plugin that allows create widget or shortcode with content of any page, post, etc, and customize look of blocks via template system. You can select one or more entries, choose template (or create your own) and display it by widget or shortcode. Templates presents very flexible system for appearance control.

Key features

  • Very flexible template system
  • Native support of all post types
  • Possibility to create your own templates
  • Developer and user friendly
  • Easy to use and beautiful UI

If you found a bug or have a suggestion, please create topic on forum or send me email (raymondcostner at gmail.com).

Documentation

You can find primary description at Other Notes tab, and details at Github Page.

Documentation

Shortcodes

There is just one shortcode tea_page_content. Below there is an example with basic parameters.
[tea_page_content template=”default” order=”asc” posts=”12,45,23″]
You also can used template variables (see Templates section at documentation) and options.

Parameters

There is some built-in options. Let’s take a closer look:

  • order allows you set entries order. All posts and pages will be sorted by date, and you can choose a direction – by ascending or by descending. Sorting by descending is a default behaviour.
  • template allows you choose layout which will look as you want. In shortcode just type full name of your template without extension, for example default or your-template-name.
  • show_page_thumbnail allows you enable or disable displaying thumbnail of entry. If you don’t want see page thumbnail, type show_page_thumbnail="false". Default – true.
  • show_page_content allows you enable or disable displaying content of entry. Default – true.
  • show_page_title allows you enable or disable displaying title of entry. Default – true.
  • linked_page_title allows you enable or disable linking title of entry. In other words, title will be link to full article. Default – false.
  • linked_page_thumbnail allows you enable or disable linking thumbnail of entry. In other words, thumbnail will be link to full article. Default – false.

Creating simplest custom template

By default plugin will be search custom templates in a folder named templates in your theme. For create the one just add into this directory a new file with name like tpc-{template-name}.php. Every template should be named by that mask! Then put in created file your code. For example:

<?php foreach ($entries as $entry) : ?> <div class="entry"> <h3> <?php echo $entry['title'] ?> </h3> <div class="post-content"> <?php echo $entry['content'] ?> </div> </div> <?php endforeach; ?> 

For using your templates in shortcode, you need just choose it in widget or pass full filename (but without extension) in shortcode. For example:
template=”tpc-my-template”

Parameters in template

Above you can see very simple example of custom template with title and content parameters. But this is not all – there is a full list of allowed parameters which you can use.

  • $count – Count of all passed entries
  • $instance – Array with user defined and default parameters. There is all list of options from self-titled section above.
  • $template_variables – Array with template-level variables.
  • $caller – Special flag that determine a module that called template: from widget or from shortcode. Can be widget or shortcode.
  • $entries – List of posts, pages, etc.
    • title – Title of current entry
    • content – Content of current entry. When page have more tag, will be used the_content function, in other cases will be used the_excerpt
    • thumbnail – Thumbnail of entry (if exists)
    • link – Link of entry
    • id – Entry ID

Details & Filters

Because full manual is too long, you can see it at Github Page. Get details and updating information about new features includes filters, template-level variables and more.

Pricing

Starting from $0 per month.

Check Out the Course Listings Widget

By Common Ninja

Course ListingsTry For Free!

App Info

Rating

Reviewers

No reviews

Tags

pages
post
posts
shortcode
widget

Developed By

Raymond

Quick & Easy

Find the Best Wordpress plugins for you

Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!

Testimonial

Testimonial plugins for Wordpress

Galleries

Galleries plugins for Wordpress

SEO

SEO plugins for Wordpress

Contact Form

Contact Form plugins for Wordpress

Forms

Forms plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Sliders

Sliders plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Comments

Comments plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Maps

Maps plugins for Wordpress

Security

Security plugins for Wordpress

Translation

Translation plugins for Wordpress

Ads

Ads plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Music Player

Music Player plugins for Wordpress

Backup

Backup plugins for Wordpress

Privacy

Privacy plugins for Wordpress

Optimize

Optimize plugins for Wordpress

Chat

Chat plugins for Wordpress

Countdown

Countdown plugins for Wordpress

Email Marketing

Email Marketing plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Membership

Membership plugins for Wordpress

popup

popup plugins for Wordpress

SiteMap

SiteMap plugins for Wordpress

Payment

Payment plugins for Wordpress

Coming Soon

Coming Soon plugins for Wordpress

Ecommerce

Ecommerce plugins for Wordpress

Customer Support

Customer Support plugins for Wordpress

Inventory

Inventory plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Testimonials

Testimonials plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Slider

Slider plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Membership

Membership plugins for Wordpress

Forms

Forms plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Contact

Contact plugins for Wordpress

Comments

Comments plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Common Ninja Apps

Some of the best Common Ninja plugins for Wordpress

Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.

Course Listings for Wordpress logo

Course Listings

Create course listings with a course catalog widget that displays programs clearly, supports easy organization, and helps visitors explore courses effectively.

Collapsible Content for Wordpress logo

Collapsible Content

Use Collapsible Content sections to structure information on your site and make it easier for visitors to find what they need.

Corner Coupon Pop-up for Wordpress logo

Corner Coupon Pop-up

Add a corner coupon pop-up to highlight discounts, collect emails, and drive user engagement without interrupting browsing.

Poll for Wordpress logo

Poll

Create interactive polls with a poll widget that gathers real time feedback, boosts engagement, and helps you understand visitor opinions quickly and clearly.

Bluesky Feed for Wordpress logo

Bluesky Feed

Show Bluesky posts with a Bluesky feed that updates in real time, improves content discovery, and keeps visitors engaged with fresh activity.

AI Chatbot for Wordpress logo

AI Chatbot

Add an AI chatbot that answers user questions by crawling your site, using uploaded content, and collecting chat interactions.

HIPAA Compliance Forms for Wordpress logo

HIPAA Compliance Forms

Create secure HIPAA compliant forms that protect sensitive data, offer full customization, and integrate easily for safe medical information collection.

Appointment Booking for Wordpress logo

Appointment Booking

Manage appointments with an appointment booking widget that lets visitors schedule easily, syncs calendars, sends reminders, and creates a smoother booking experience.

App Store Reviews for Wordpress logo

App Store Reviews

Show Apple App Store reviews to build trust, strengthen credibility, and help visitors make confident download decisions that support app growth.

Reviews Badge for Wordpress logo

Reviews Badge

Use a reviews badge to highlight your ratings, build trust at a glance, improve credibility, and help increase conversions across your site.

Age Gate for Wordpress logo

Age Gate

Use an age verification popup to validate visitor age, meet regulatory requirements, and ensure only eligible users access restricted content.

Donation Button for Wordpress logo

Donation Button

Add a donation button that lets users contribute easily using PayPal or Stripe, supporting causes directly from your site.

Discover Apps By Platform

Discover the best apps for your website

WordPress
Wix
Shopify
Weebly
Webflow
Joomla
PrestaShop
Shift4Shop
WebsiteX5
MODX
Opencart
NopCommerce

Common Ninja Search Engine

The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!

Multiple platforms