Testimonials Post Type
This module will add testimonials
post type.
Required Plugins
- AIOS Initial Setup
Installation
Step 1. Download and Active Required Plugins.
Step 2. Download the package and unzip it.
Step 3. Move the archive-testimonials.php
on your current theme’s root
folder.
Step 4. Move the testimonials-post-type
folder under your current theme’s modules
folder.
Step 5. Include Module Files (If Needed)
- If your current theme doesn’t automatically includes all module files under
modules
folder, you may manually include this on yourfunctions.php
Step 6. Enable Banner Settings for Testimonials
- Go to your Wordpress site admin area then under
AIOS All In One
>Initial Setup
>Custom Metabox
, enable all banner settings fortestimonials-post-type
(https://prnt.sc/wfl11t ).
Step 7. Enqueue ElementPeek Script
- Go to your Wordpress site admin area then under
AIOS All In One
>Initial Setup
>Enqueue Libraries
, enableElementPeek
script then save changes.
Shortcodes
Testominials Archive
html
[agentpro_testimonials_archive][/agentpro_testimonials_archive]
Inline Attributes:
- {{testimonial_id}} - ID
- {{testimonial_title}} - Title
- {{testimonial_content}} - Content
- {{testimonial_excerpt}} - Excerpt
- {{testimonial_permalink}} - Permalink
- {{testimonial_rate_value}} - Rate Value
- {{testimonial_rate_loop}}(Your Element Goes Here){{/testimonial_rate_loop}} - Loop the inputted element by rating value. (Most likely for rendering rating stars)
Attributes:
- post_status - the post status of the testimonial.
Default: publish
- posts_per_page - number of retrieved testimonials.
Default: 10
- order - the ascending or descending order of the retrieved testimonials.
Default: DESC
- orderby - sorts the retrieved testimonials by parameter.
Default: post_date
- excerpt_limit - trims the testimonial’s content by supplied number.
Default: empty
- exceprt_more_text - the added text at the end of the trimmed content.
Default: ...
- no_results_text - result text if no testimonials found.
Default: No Testimonials Found...
- show_attributes - if set to true, this displays all available attributes of the shortcode.
Default: false
Last updated on