Hello, I use Elegant Theme template with your plugin. I need to show page content on another page, but [page_content kurz_cabg_2] show nothing. Could you tell me, where is problem.
https://mdct.cz/for-test-purpose-only/
Thank you very much. Thomas.
https://www.ads-software.com/extend/plugins/page-shortcodes/
]]>Hi,
I needed to refine the wp_query a little so I added a few new options to the pagelist shortcode. You can now order the results, exclude pages, limit the number of returned pages, adjust the search depth to pick up grandchildren, great grandchildren etc…
More details can be found here.
if you just want to download it you can find a zip with the patch here
I’m also going to submit the patch to dragonfly, and hopefully they will merge it with the official plugin.
-Max
https://www.ads-software.com/extend/plugins/page-shortcodes/
]]>The shortcode output for content and title need to be run through apply_filters(). Here are a couple functions to replace in PageShortcodesPlugin.php:
function handleWpShortcode_page_title($atts, $content = null) {
$page = $this->findPage($atts, $content);
if ( $page ) return apply_filters('wp_title', $page->post_title);
return $content;
}
function handleWpShortcode_page_content($atts, $content = null) {
$page = $this->findPage($atts, $content);
if ( $page ) {
$content = $page->post_content;
// filtering suggested by https://codex.www.ads-software.com/Function_Reference/the_content
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
}
return $content;
}
https://www.ads-software.com/extend/plugins/page-shortcodes/
]]>