Wordpress plugins
Pronamic Page Widget

Pronamic Page Widget

Version : 1.0.2
Tested up to : 3.0.5
Number of download : 3294
Author : Pronamic
Average rating : 0 / 5 on 0 votes 0 votes, 0 avg.rating

Screenshots

Pronamic Page Widget
Pronamic Page Widget
Pronamic Page Widget
Pronamic Page Widget

This plugin is deprecated so Pronamic wil no longer support and maintain this plugin. If you want to help maintain the plugin, fork it on GitHub and open pull requests. Template Hierarchy widget-page-{sidebar_id}.php widget-page-{widget_id}.php widget-page-{page_slug}.php widget-page-{page_id}.php widget-page.php https://codex.wordpress.org/Template_Hierarchy Conditional Tags pronamic_is_page_widget When any Pronamic Page Widget is being displayed. pronamic_is_page_widget(‘pronamic_page-1’) When Pronamic Page Widet with id 1 is being displayed. pronamic_is_page_widget_on_sidebar(‘primary-widget-area’) When a Pronamic Page Widget is begin displayed on an sidebar with the id “primary-widget-area” https://codex.wordpress.org/Conditional_Tags How to use? Pronamic Page Widget template <h2 class="entry-title"> <?php the_title(); ?> </h2> <div class="entry-content"> <?php the_excerpt(); ?> </div> Adjust the excerpth length Example of how you can adjust the excerpt length of the page widgets. function pronamic_excerpt_length($length) { if(pronamic_is_page_widget_on_sidebar('primary-widget-area')) { return 250; } elseif(pronamic_is_page_widget('pronamic_page-3')) { return 100; } elseif(pronamic_is_page_widget()) { return 50; } else { return 40; } } add_filter('excerpt_length', 'pronamic_excerpt_length'); Links Pronamic Remco Tolsma Markdown’s Syntax Documentation Pronamic plugins Pronamic Google Maps Gravity Forms (nl) Pronamic Page Widget Pronamic Page Teasers Maildit Pronamic Framework Pronamic iDEAL

Download now