Plugin Author
mrwweb
(@mrwweb)
Hi @zied86.
You’re headed down the right path. Check out “How can I modify the widget design or output?” on the FAQ page. You’ll see that there is a safe way to create a new template in your theme using that fpw_views folder.
However, I would encourage you to try to use CSS or a filter first if possible as those are the most future-friendly ways of modifying the plugin. (I will do my absolute best to make the templating work in the future, but new features will almost certainly require modifying the template.)
So take a look at that FAQ answer and let me know if you have any other questions.
thank you for your answer
I looked for a feature such as this “template file name” in this plugin
http://wordpress.org/extend/plugins/flexible-posts-widget/screenshots/
Plugin Author
mrwweb
(@mrwweb)
Glad to help!
What are you actually trying to do? Are you saying that the existing templating structure for the plugin isn’t working for you?
I would love to use this plugin
it is excellent
my problem that the template HTML site that I’m developing, there are several display example
Plugin Author
mrwweb
(@mrwweb)
Is the issue that you need multiple different widget layouts for different pages? Maybe a link or screenshot might help show me the problem?
Each widget gets a class specific to the page it features, so you can get a long way with CSS or use a conditional statement in the widget layout based on the page id.
thank you for your follow-up
Here is an example
http://img248.imageshack.us/img248/2995/widgetv.jpg
the first 3 pages have the same style
the 4 th item has a specific display
same for the 5th item
Note the picture:
1-title
2-the excpert
3-read more
4- featured picture
Thank you
Plugin Author
mrwweb
(@mrwweb)
Ok. Thanks for the details.
Unfortunately, you’re right that right now this plugin does not support multiple templates. You could technically do this in the current single widget layout template with conditionals (pseudo-code), but I wouldn’t recommend it as that would be hard to maintain.
if( in_array( $featured_page_id, array( 12, 47, 93 ) ) {
/* custom widget layout #1 */
} elseif( in_array( $featured_page_id, array( 43, 32 ) ) {
/* custom widget layout #2 */
}
I may add more advanced templating at some point in the future, but I’ll be honest and tell you that it probably won’t be high on the priority list. However, I’ve added it to the features poll, so make sure to go there and vote for it and any other features you would like.
Thank you for your follow-up
I’ll try
In any case, thank you