This repository has been archived by the owner on Oct 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathreadme.txt
189 lines (128 loc) · 4.98 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
=== Custom Content Shortcode ===
Stable tag: 4.0.1
Contributors: miyarakira
Author: Eliot Akira
Author URI: eliotakira.com
Plugin URI: wordpress.org/plugins/custom-content-shortcode/
Tags: loop, query, content, shortcode, post type, field, attachment, comment, sidebar, taxonomy
Requires at least: 5.0
Tested up to: 5.9
Requires PHP: 5.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Display posts, pages, custom post types, fields, attachments, comments, images, users, menus, sidebars
== Description ==
= Deprecation Notice =
<br />
This plugin is no longer in active development.
Please use the next-generation template system, [Loops & Logic](https://wordpress.org/plugins/tangible-loops-and-logic/).
= Overview =
<br />
From a single field to entire pages, Custom Content Shortcode is a set of commands to display content where you need.
The **[content]** shortcode displays any of the following: *posts, pages, custom post types, fields, images, menus,* or *widget areas*.
The **[loop]** shortcode performs query loops. It can display, for example, available products in a category, or excerpts from the 5 most recent posts. You can query by parameters such as: *post type, taxonomy, date,* and *field values*.
There is a reference section under Settings -> Custom Content.
= Included =
<br />
Here are some of the included features:
* Wide range of **query parameters** to display site content
* **Conditional** content based on field value, login status, etc.
* Overview of your site's **content structure**
* **Relative URLs** for links and images
* **Cache** the result of a query
* Optional: **Gallery field**, **Mobile Detect**, **Math**
Support for other plugins: [Advanced Custom Fields](http://wordpress.org/plugins/advanced-custom-fields/), [WCK Fields and Post Types](http://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/)
== Installation ==
1. Install & activate from *Plugins -> Add New*
1. See: *Settings -> Custom Content*
== Screenshots ==
1. Documentation and examples
2. Content overview page
3. Gallery field
== Upgrade Notice ==
== Changelog ==
4.0.1
---
* Correct stable tag in readme.txt
* Use HTTP API instead of CURL
* Use wp_enqueue instead of inline style/script
* Sanitize and escape data input/output
**Breaking changes**
* Enable certain shortcodes only within posts authored by an admin user
* Remove features that allowed users to load custom CSS/JS
* Load shortcode: css, js, gfonts
* Auto-loaded fields: css, js, html
3.8.8
---
* Add message about plugin retirement and move to Loops & Logic
* Thanks to @Pross for improvements
* Improve compatibility with PHP 8
* Field shortcode: Improve get_the_excerpt filter
* Test compatibility with WordPress 5.9
3.8.7
---
* Test compatibility with WordPress 5.7
3.8.6
---
* Improve getting shortcode function names in Content Overview
3.8.5
---
* Correct output of ACF field label when multiple choices are selected
3.8.4
---
* Remove deprecation warning about non-static method CCS_Loop::include_children
3.8.3
---
* Improve compatibility with PHP 7.2
* Update to Parsedown library 1.7.3 for documentation pages
* Math module: Use variable function call for built-in functions
3.8.2
---
* Pass: Allow passing user fields that are arrays or objects - thanks to @jrevillini
* Improve compatibility with PHP 5.3
3.8.1
---
* Compatibility with WP 5.0.2 and PHP 7.2
* Improve support and documentation for shortcodes inside HTML attributes
3.8.0
---
* [link] - Add parameter *download*; set "true" or file name
3.7.9
---
* [if user_field contains] - Support searching multiple user fields
* [related] - Support ACF relational type users
* [related user_field] - Support related posts from a user field
3.7.8
---
* [if image] - Check correct current post when inside [related]
3.7.7
---
* [related] - Add parameter *offset* to skip the first X number of posts
* [if] - Improve logic to count repeater fields
3.7.6
---
* [each] - Add default field *count* for each term's post count
3.7.5
---
* [if] - Add parameter *count* for field value array, such as relationship fields
* [if] - Improve field=content,excerpt with parameter *contains*
* [is] - Allow nested
* Content overview: cleaner list of shortcodes
3.7.4
---
* [loop], [loopage] - Add parameter *query* to use custom query variable for pagination
3.7.3
---
* [user] - Add field *registered* and parameter *format* ("relative" or custom format)
* Settings - Add option to enable shortcodes in widget title
3.7.1
---
* [format] - Add parameters *split* and *part*; handle field values of number type in list
* [attached] - Add field *download-url*, to get URL to actual PDF file instead of generated preview image
* [url register] - URL to registration form under wp-login
* [pass] - Add parameter *trim=all* to remove all white space, new lines, tabs
* ACF [related] - Add parameters *start* and *count*
* Improve use of content filter with other plugins; support for Beaver Themer in progress
3.7.0
---
* Minor fixes in reference pages