-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
executable file
·81 lines (56 loc) · 2.8 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
=== AJV Testimonials ===
Contributors: ajvillegas
Donate link:
Tags: testimonials, shortcode
Requires at least: 4.5
Tested up to: 4.9
Stable tag: 1.0.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Easily manage and display client testimonials on your website.
== Description ==
This plugin allows you to easily manage and display client testimonials on your website by adding a new 'Testimonials' custom post type and custom taxonomy for categorizing testimonials. It outputs clean, semantic HTML in the front-end with no styling to make it easy for you to integrate into your theme.
You can display testimonials anywhere on your website using the `[ajv-testimonials]` shortcode or the included 'Testimonials' widget. You can also use the 'Insert Testimonials' button in the page editor to automatically add the shortcode to your page or post content.
The shortcode accepts two optional parameters, `category` and `class`. You can specify which categories you want displayed by entering the slug for each category separated by a comma, and add custom CSS classes by separating each with a space.
The following example shows how you can implement the shortcode on your website:
`[ajv-testimonials category="cat1,cat2,cat3" class="class1 class2"]`
**Author Image Size**
The default testimonial author image size is 150px by 150px. If you need to change this size, you can do so using the `ajv_testimonials_avatar_size` filter.
The example below demonstrates how you can implement this filter on your theme:
`add_filter( 'ajv_testimonials_avatar_size', 'myprefix_testimonials_avatar_size' );
/**
* Filter the AJV Testimonials author image size.
*
* @param array An array containing the default image size.
* @return array An array containing the modified image size.
*/
function myprefix_testimonials_avatar_size( $size ) {
$size = array(
(int) 200, // width
(int) 200 // height
);
return $size;
}`
== Installation ==
### Using The WordPress Dashboard
1. Navigate to the 'Add New' Plugin Dashboard
2. Click on 'Upload Plugin' and select `ajv-testimonials.zip` from your computer
3. Click on 'Install Now'
4. Activate the plugin on the WordPress Plugins Dashboard
### Using FTP
1. Extract `ajv-testimonials.zip` to your computer
2. Upload the `ajv-testimonials` directory to your `wp-content/plugins` directory
3. Activate the plugin on the WordPress Plugins Dashboard
== Screenshots ==
1. Admin table view
2. Testimonial editor page
3. Testimonials widget
== Changelog ==
= 1.0.2 =
* Added the `ajv_testimonials_avatar_size` filter for changing the default testimonial author image size.
= 1.0.1 =
* Updated post meta IDs.
* Updated shortcode to use a dash instead of an underscore.
* Removed category ID from the taxonomy admin table.
= 1.0.0 =
* Initial release.