Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 512573

Modified to add excerpt support

$
0
0

Replies: 1

Hi Frank. I added your widget to a site I’m developing in order to set up a widgetized front page with news items. I wanted to have the page title and some content show, but then discovered that I wasn’t going to want a page’s content to be my text.

I thought, can I get an excerpt in this? That can give me the intro text that I want to display with the title. And then I discovered that this plug-in is a modification of the Featured Pages Advanced (FPA) plugin, which does have excerpt support.

I carefully collected in the excerpt references from the FPA widget-class.php and put them in your wpstudio-widget-class.php file. I also needed to add some excerpt support for pages, so the following snippet was added to my functions.php file:

//* Add Excerpt Support to Pages
add_post_type_support('page', 'excerpt');

And it worked!

Thank you for setting up this plug-in. It really works well for setting up a nice widgetized front page setup with full photos in the boxes.

I’ll paste the entire modified copy of wpstudio-widget-class.php below in the next comment, if you’d like to add this to an update of your plug-in.


Viewing all articles
Browse latest Browse all 512573

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>