Hi,
Is it possible to add a CSS class to the widget if the current page is the same as that displayed on the widget?
I use several widgets plugin on the same page, and I would add the CSS on the “current” widget.
Is it possible ?
Thanks in advance,
Vivienb
Hi,
I’m trying to add multiple widget instances and have a need to style them differently. How do I override the templates/featured-post-widget.css with the default template css so that I can style id=”featured_page_widget-1″ differently than say id=”featured_page_widget-2″?
hi. i am running a site in danish and english (danish is main language) and are using the Polylang plugin for translating.
can you please help me how i can change the read more link – so i have 2 versions?
i have changed it to the danish version of “read more = l?s mere”, but then the text is the same on both the danish and the english version.
i have made the translation file and uploaded to language in the plugin structure.
the site name: https://www.capacitypilot.com
thank you:-)
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>I was able to change the page order by hacking the plugin code, but this isn’t ideal for obvious reasons. Would it be possible to add some options for ordering the output by something other than ‘rand’?
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>Is it possible to use the featured-link custom field to enter text instead of an image?
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>I’m wondering how I can make the title font bold, larger and align the title centrally in the featured page widget? I’ve had a look through the .php pages for the plugin, and also my theme’s .css but I can’t find anything obvious.
Also, how can I add a ‘Read More’ box (like the featured blog boxes have)?
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>I’ve dabbled with the code on ‘featured-page-widget.php’.
I’ve changed the ‘orderby’ from ‘rand’ (random) to ‘title’ so it displays the page list alphabetically but it will only display them descending and I want it ascending. I changed the order => ‘asc’ but nothing happens. Any ideas?
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>The show ‘All’ option is showing a maximum of 10 pages.
I’ve found a work around changing the value from 10 – 100 on line 59 of form-widget.php but it’s not ideal.
<?php for ( $ictr = 1; $ictr <= 100; ++$ictr ) : ?>
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>Hi,
I have set up the featured page widget to show our About page, but I would like the Page title not to show, as it has a white edge to it. teh site is https://www.ourbigfattraveladventure.com
Thanks,
Andrew
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>Hi, im playing with the widget and displaying featured image from post is working. But the image set in page as featured image does not show up in in the widget. What am i doing wrong?
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>Function get_the_featured_post_image($post_id = NULL) uses function calls like get_the_title() and has_post_thumbnail(), without using the conveyed post_id parameter.
Here’s a patch for fixing that.
Index: template_tags.php
===================================================================
--- template_tags.php (revision 556335)
+++ template_tags.php (working copy)
@@ -29,12 +29,12 @@
$height = $_wp_additional_image_sizes[$this_instance['thumbnail_size']]['height'];
}
$content.= '<img src="' . $postimage . '" width="' . $width . '" height="' . $height . '" border="0" class="align' . $this_instance['imagealign'] . ' fpw-image-' . $this_instance['imagealign'] . '" />';
- } elseif ( function_exists('has_post_thumbnail') and has_post_thumbnail() and $this_instance['useimageas'] == 'image' ) {
- $content.= get_the_post_thumbnail($post_id, $this_instance['thumbnail_size'], array('title' => get_the_title(), 'class'=>'align'. $this_instance['linkalign']));
+ } elseif ( function_exists('has_post_thumbnail') and has_post_thumbnail($post_id) and $this_instance['useimageas'] == 'image' ) {
+ $content.= get_the_post_thumbnail($post_id, $this_instance['thumbnail_size'], array('title' => get_the_title($post_id), 'class'=>'align'. $this_instance['linkalign']));
}
if ( $content != '' ) {
- return '<a title="' . get_the_title() . '" href="' . get_permalink() . '">' . $content . '</a>';
+ return '<a title="' . get_the_title($post_id) . '" href="' . get_permalink($post_id) . '">' . $content . '</a>';
} else {
return false;
}
@@ -143,4 +143,4 @@
echo get_the_featured_post_read_more_link($post_id);
}
-}
\ No newline at end of file
+}
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>I have custom excerpts for all of my posts, but this plugin ignores them and generates its own excerpt. I could use the featured-text option, but that seems redundant to me (not to mention extra work) when I already have the desired text right there in the custom excerpt field for the post.
Another issue is the image placement. Instead of being above the title, I would like the image to be nested in the excerpt text, with the text wrapping around it.
If these two things could be resolved, this would be exactly the plugin I spent a long time looking for.
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>Looks like a very cool plugin.
Does it have a shortcode?
I’d like to use it as a “feature” for my front page.
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>Hi.
I have a problem with this plugin. Generated code have an empty paragraph in it. How can i get rid of it?
example result code:
<p>Je?li masz zamiar u?y? fragmentu Lorem Ipsum, lepiej mie? pewno??, ?e nie ma niczego ?dziwnego” w ?rodku tekstu. Wszystkie Internetowe generatory Lorem Ipsum. (more…)</p>
<p></p>
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>Hi – I noticed a bug in this widget – if you have multiple instances of this widget in a sidebar – specifically mixing one instances that displays posts, followed by another instances that display page(s), the pages won’t display because of this bug. Found that the “page” post type was being removed from the options, and the options were being read by following instances of the widget
Fixed it with the following code in featured-page-widget.php:-
~ line 321
/* Use this variable to store what page/post types we will show */
$post_types = $this->options->post_types;
/* Get the list of pages */
if ( $instance[‘category’] != -1 ) {
//unset the page post type from this variable
$pages = array_flip($post_types);
unset($pages[‘page’]);
$post_types = array_flip($pages);
$args = array(
‘category__in’ => $instance[‘category’],
//’post__not_in’ => array($post->ID),
‘posts_per_page’ => $instance[‘items’],
‘orderby’ => ‘rand’,
‘post_type’ => $post_types,
‘ignore_sticky_posts’ => true,
);
} else {
$args = array(
‘post__in’ => $instance[‘page’],
‘posts_per_page’ => $instance[‘items’],
‘orderby’ => ‘rand’,
‘post_type’ => $post_types,
‘ignore_sticky_posts’ => true,
);
}
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>I like this plugin, and see how I can make GREAT use of this, but I’d like to know if there is a way to make multiple selected pages appear horizontally instead stacked vertically. Any help would be appreciated..
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>Hi,
SOLVED: Edited the relevant file in the Templates folder.
I would like the Title to appear above the thumbnail.
How can I do this?
Thanks
]]>Hi Grandslambert,
Great plugin!
I’ve created my own templates and I’d like to ‘filter’ the the_featured_post_image function to remove the link from it. Is there an easy / obvious way to do that? I tried creating my own function by copying yours out of the plugin code and sticking it in my functions.php file, but it didn’t work and I’m over my head.
Thanks,
Duncan
This plugin was working great until the recent update. Now the image won’t wrap (it’s set to align-right) and the title is displaying twice. Can’t figure out why!
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>The Featured Page Widget is great for bringing selected tasters onto the homepage but are there any image carousels that this can work with? Right now I have a single feature on my home page but it would be great to have several pages in a slide show with something like the S3Slider but this requires very specific code in the page.
]]>As nicely documented on https://codex.www.ads-software.com/Function_Reference/add_post_type_support, it’s possible to enable the “excerpt” field on WordPress pages and custom post types.
Hence, in the next version of this plugin, I’d think it would be better to enable the excerpt field on pages, etc. rather than using the “featured-text” meta field.
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>I’ve got this mostly working except there’s one MAJOR problem. My links to posts are broken because this doesn’t pick up the category or the post number in the links.
For example the post is REALLY here:
https://www.sitename.com/uncategorized/1/hello-world/
But the links in this featured plugin only give me:
https://www.sitename.com/hello-world/
So I get 404’s on any clicks to the posts from the featured post area on the sidebar. Any ideas how to fix?
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>Love this plugin and it has made my life and my clients lives a lot easier…so thanks!
One problem I am having at the moment though is that when I make the image the width of my widget and center align the post thumbnail the image keeps going below the text.
See here for an example of what I mean…https://drp.ly/Ocfc
Any thoughts on how I can fix this?
I have tried to play around with the plugin code but didn’t have any luck.
Thanks in advance
Andy
https://www.ads-software.com/extend/plugins/featured-page-widget/
]]>