Version Description
- fixed bug with "more_tag" and non english chars;
Download this release
Release Info
Developer | webvitaly |
Plugin | Sitemap |
Version | 3.2 |
Comparing to | |
See all releases |
Code changes from version 3.1 to 3.2
- readme.txt +35 -15
- sitemap.php +4 -4
readme.txt
CHANGED
@@ -5,34 +5,32 @@ Tags: page, page-list, pagelist, sitemap, subpages, siblings
|
|
5 |
Author URI: http://web-profile.com.ua/wordpress/
|
6 |
Requires at least: 3.0
|
7 |
Tested up to: 3.3.1
|
8 |
-
Stable tag: 3.
|
9 |
|
10 |
-
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
Code moved to [page-list plugin](http://wordpress.org/extend/plugins/page-list/)
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
21 |
|
22 |
-
|
23 |
-
You can use aditional parameters: **`[pagelist_ext child_of="4" exclude="6,7,8" image_width="50" image_height="50"]`**.
|
24 |
|
25 |
-
=
|
26 |
-
*
|
27 |
-
*
|
28 |
-
* show hierarchical tree of sibling pages: `[siblings]`;
|
29 |
-
* show list of pages with featured image and with excerpt: `[pagelist_ext]`;
|
30 |
|
31 |
[Page-list plugin page](http://web-profile.com.ua/wordpress/plugins/page-list/)
|
32 |
|
33 |
[CMS WordPress](http://web-profile.com.ua/wordpress/)
|
34 |
|
35 |
-
==
|
36 |
|
37 |
= Parameters for [pagelist], [subpages] and [siblings]: =
|
38 |
* **depth** - means how many levels in the hierarchy of pages are to be included in the list, by default depth is unlimited (depth=0), but you can specify it like this: `[pagelist depth="3"]`; If you want to show flat list of pages (not hierarchical tree) you can use this shortcode: `[pagelist depth="-1"]`;
|
@@ -82,6 +80,25 @@ You can use aditional parameters: **`[pagelist_ext child_of="4" exclude="6,7,8"
|
|
82 |
* **show_meta_key** - if you want to show meta key you can use this shortcode: `[pagelist_ext show_meta_key="your_meta_key"]`; by default the show_meta_key is empty (show_meta_key=""); If show_meta_key is enabled, but meta_value is empty, than meta_key is not showing;
|
83 |
* **meta_template** - if you want to specify the template of meta you can use this shortcode: `[pagelist_ext show_meta_key="your_meta_key" meta_template="Meta: %meta%"]`; by default meta_template="%meta%";
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
== Screenshots ==
|
86 |
|
87 |
1. [pagelist] shortcode;
|
@@ -89,6 +106,9 @@ You can use aditional parameters: **`[pagelist_ext child_of="4" exclude="6,7,8"
|
|
89 |
|
90 |
== Changelog ==
|
91 |
|
|
|
|
|
|
|
92 |
= 3.1 =
|
93 |
* fixed bug with empty image in "show_first_image" parameter;
|
94 |
* added "more_tag" higher priority than "limit_content" (thanks to BobyDimitrov);
|
5 |
Author URI: http://web-profile.com.ua/wordpress/
|
6 |
Requires at least: 3.0
|
7 |
Tested up to: 3.3.1
|
8 |
+
Stable tag: 3.2
|
9 |
|
10 |
+
Plugin shows list of pages with [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
**Code moved to [page-list plugin](http://wordpress.org/extend/plugins/page-list/).**
|
15 |
|
16 |
+
= shortcodes: =
|
17 |
|
18 |
+
* **[pagelist]** - hierarchical tree of all pages on site (useful to show sitemap of the site);
|
19 |
+
* **[subpages]** - hierarchical tree of subpages to the current page;
|
20 |
+
* **[siblings]** - hierarchical tree of sibling pages to the current page;
|
21 |
+
* **[pagelist_ext]** - list of pages with featured image and with excerpt (useful to show list of products with images);
|
22 |
|
23 |
+
= aditional parameters examples: =
|
|
|
24 |
|
25 |
+
* `[pagelist depth="2" child_of="4" exclude="6,7,8"]`
|
26 |
+
* `[pagelist_ext child_of="4" exclude="6,7,8" image_width="50" image_height="50"]`
|
27 |
+
* visit [other notes](http://wordpress.org/extend/plugins/sitemap/other_notes/) section to see all params
|
|
|
|
|
28 |
|
29 |
[Page-list plugin page](http://web-profile.com.ua/wordpress/plugins/page-list/)
|
30 |
|
31 |
[CMS WordPress](http://web-profile.com.ua/wordpress/)
|
32 |
|
33 |
+
== Other Notes ==
|
34 |
|
35 |
= Parameters for [pagelist], [subpages] and [siblings]: =
|
36 |
* **depth** - means how many levels in the hierarchy of pages are to be included in the list, by default depth is unlimited (depth=0), but you can specify it like this: `[pagelist depth="3"]`; If you want to show flat list of pages (not hierarchical tree) you can use this shortcode: `[pagelist depth="-1"]`;
|
80 |
* **show_meta_key** - if you want to show meta key you can use this shortcode: `[pagelist_ext show_meta_key="your_meta_key"]`; by default the show_meta_key is empty (show_meta_key=""); If show_meta_key is enabled, but meta_value is empty, than meta_key is not showing;
|
81 |
* **meta_template** - if you want to specify the template of meta you can use this shortcode: `[pagelist_ext show_meta_key="your_meta_key" meta_template="Meta: %meta%"]`; by default meta_template="%meta%";
|
82 |
|
83 |
+
|
84 |
+
== Frequently Asked Questions ==
|
85 |
+
|
86 |
+
= How to show the list of posts? =
|
87 |
+
|
88 |
+
To show list of posts you can use [List Category Posts](http://wordpress.org/extend/plugins/list-category-posts/other_notes/) plugin.
|
89 |
+
|
90 |
+
= On what functions shortcodes are based? =
|
91 |
+
|
92 |
+
Shortcodes [pagelist], [subpages], [siblings] are based on [wp_list_pages('title_li=')](http://codex.wordpress.org/Template_Tags/wp_list_pages) function.
|
93 |
+
Shortcode [pagelist_ext] is based on [get_pages()](http://codex.wordpress.org/Function_Reference/get_pages) function.
|
94 |
+
|
95 |
+
= What is the difference between [pagelist], [subpages] and [siblings]? =
|
96 |
+
|
97 |
+
Shortcodes [pagelist], [subpages] and [siblings] accept the same parameters. The only difference is that [subpages] and [siblings] not accept `child_of` parameter, because [subpages] shows subpages to the current page and [siblings] shows subpages to the parent page.
|
98 |
+
|
99 |
+
= How to create sitemap.xml? =
|
100 |
+
To create sitemap.xml you can use [Google XML Sitemaps](http://wordpress.org/extend/plugins/google-sitemap-generator/) plugin.
|
101 |
+
|
102 |
== Screenshots ==
|
103 |
|
104 |
1. [pagelist] shortcode;
|
106 |
|
107 |
== Changelog ==
|
108 |
|
109 |
+
= 3.2 =
|
110 |
+
* fixed bug with "more_tag" and non english chars;
|
111 |
+
|
112 |
= 3.1 =
|
113 |
* fixed bug with empty image in "show_first_image" parameter;
|
114 |
* added "more_tag" higher priority than "limit_content" (thanks to BobyDimitrov);
|
sitemap.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Sitemap
|
4 |
Plugin URI: http://web-profile.com.ua/wordpress/plugins/page-list/
|
5 |
Description: Show list of pages with [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes.
|
6 |
-
Version: 3.
|
7 |
Author: webvitaly
|
8 |
Author Email: webvitaly(at)gmail.com
|
9 |
Author URI: http://web-profile.com.ua/wordpress/
|
@@ -16,10 +16,10 @@ Future features:
|
|
16 |
|
17 |
add_action('wp_print_styles', 'pagelist_add_stylesheet');
|
18 |
function pagelist_add_stylesheet() {
|
19 |
-
wp_enqueue_style( 'page-list-style', plugins_url( '/css/page-list.css', __FILE__ ), false, '3.
|
20 |
}
|
21 |
|
22 |
-
$pagelist_powered_line = "\n".'<!-- Sitemap plugin v.3.
|
23 |
|
24 |
if ( !function_exists('pagelist_shortcode') ) {
|
25 |
function pagelist_shortcode( $atts ) {
|
@@ -433,7 +433,7 @@ if ( !function_exists('page_list_parse_content') ) {
|
|
433 |
}
|
434 |
|
435 |
if( $more_tag && $more_tag_found ){ // "more_tag" have higher priority than "limit_content"
|
436 |
-
$fake_more_pos =
|
437 |
if( $fake_more_pos === false ) {
|
438 |
// substring not found in string and this is strange :)
|
439 |
} else {
|
3 |
Plugin Name: Sitemap
|
4 |
Plugin URI: http://web-profile.com.ua/wordpress/plugins/page-list/
|
5 |
Description: Show list of pages with [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes.
|
6 |
+
Version: 3.2
|
7 |
Author: webvitaly
|
8 |
Author Email: webvitaly(at)gmail.com
|
9 |
Author URI: http://web-profile.com.ua/wordpress/
|
16 |
|
17 |
add_action('wp_print_styles', 'pagelist_add_stylesheet');
|
18 |
function pagelist_add_stylesheet() {
|
19 |
+
wp_enqueue_style( 'page-list-style', plugins_url( '/css/page-list.css', __FILE__ ), false, '3.2', 'all' );
|
20 |
}
|
21 |
|
22 |
+
$pagelist_powered_line = "\n".'<!-- Sitemap plugin v.3.2 (wordpress.org/extend/plugins/page-list/) -->'."\n";
|
23 |
|
24 |
if ( !function_exists('pagelist_shortcode') ) {
|
25 |
function pagelist_shortcode( $atts ) {
|
433 |
}
|
434 |
|
435 |
if( $more_tag && $more_tag_found ){ // "more_tag" have higher priority than "limit_content"
|
436 |
+
$fake_more_pos = mb_strpos($content, '###more###', 0, 'UTF-8');
|
437 |
if( $fake_more_pos === false ) {
|
438 |
// substring not found in string and this is strange :)
|
439 |
} else {
|