-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
93 lines (75 loc) · 3.96 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
82
83
84
85
86
87
88
89
90
91
92
93
=== Advanced Category and Custom Taxonomy Image ===
Tags: taxonomy image, category image, featured image, category logo, term image
Contributors: sajjad67
Author: Sajjad Hossain Sagor
Tested up to: 6.6
License: GPLv2
Requires at least: 5.6
Stable tag: trunk
Add Custom Image To Your Category / Custom Taxonomy Field With Advanced Category and Custom Taxonomy Image Plugin.
== Description ==
Now its easier to include category / custom taxonomy image with this plugin for different platforms. No need to overload mobile bandwidth with high pixel image size. You can now select different image for different devices. Upload Different Image For Different Devices ex: Mobile, Tablet, Desktop, iOS, Android, Windows Phone.
Built-in Template Tag To Use Anywhere You Want In Your Theme : get_taxonomy_image($term_id, $return_img_tag, $class);
= Documentation =
<pre>
$taxonomy_img = get_taxonomy_image( int $term_id = get_queried_object()->term_id , boolean $return_img_tag = false , array $class = array() );
get taxonomy image url if $return_html = true then return <img> tag
Parameters :
$term_id
(int) (Required) Taxonomy ID of the term.
$return_img_tag
(boolean) (Optional) Formatted Image with <img> tag for the field during output.
$class
(array) (Optional) Array of image classes ex: array('class1','class2',...) but $return_img_tag should be true to add image class.
echo $taxonomy_img; // taxonomy image url
</pre>
where $term_id is 'category / term id'
Shortcode : use the shortcode anywhere to get taxonomy image. If you don't provide "term_id" value then it will be current queried page taxonomy automatically.
<pre>
echo do_shortcode( '[ad_tax_image term_id="" return_img_tag="true" class="test-class"]' ); // keep term_id empty if you want to show current visited taxonomy archive image.
</pre>
= Features =
* Option To Enable Custom Image Upload for different taxonomies
* Option To Enable Custom Image Upload for different devices
* Very simple to use & WP Default Media Uploaded to upload image
* Built-in Template Tag to use in your theme template
* Shortcode to use anywhere.
Interested in contributing to Drag & Drop Menu Items?
Contact me at sagorh672(at)gmail(dot)com
== Screenshots ==
1. Settings page for enabling taxonomy image upload for different taxonomies
2. Settings page for enabling taxonomy image upload for different devices
3. Auto Template Tag Generation
== Frequently Asked Questions ==
1. How can i use the image i uploaded?
Get Your Taxonomy tag_ID and use get_taxonomy_image( $term_id ) to get the image url and use it in your theme's template area where you want to show it. (Note : In the taxonomy list there you will find already created template tag to use see screenshot 3)
== Installation ==
1. Go to Wordpress plugin page
2. Click Add New & Upload Plugin
3. Drag / Click upload the plugin zip file
4. The resulting installation screen will list the installation as successful or note any problems during the install.
If successful, click Activate Plugin to activate it, or Return to Plugin Installer for further actions.
3. Go to your Dashboard ->Settings -> Advanced Category & Taxonomy Image.
4. There You Will Find Fields To Enable Taxonomy & Device Filters.
6. After Enabling Go To Your Taxonomy Add/Edit Page To Upload Image
== Changelog ==
= 1.0.9 =
* Minor Update.. tested for latest wp compatibility..
= 1.0.8 =
* Added a new shortcode for dynamic usage in any template or dnd builder. Plus tested for latest wp compatibility..
= 1.0.7 =
* Minor Update.. tested for latest wp compatibility..
= 1.0.6 =
* Minor Update.. tested for latest wp compatibility.. added any device option and code style changed and beautified.
= 1.0.5 =
* Minor Update.. now tax template tag won't be visible if no image is added
= 1.0.4 =
* Minor Update.. updated for tranlations ready..
= 1.0.3 =
* Minor Update.. tested for latest wp compatibility..
= 1.0.2 =
* Minor Update.. tested for latest wp compatibility..
= 1.0.1 =
* Minor Update.. tested for latest wp compatibility..
= 1.0 =
* Initial release.