DaveE
Forum Replies Created
-
Forum: Plugins
In reply to: [Flexible Posts Widget] Remove image size when used in responsive themeHi oceanazul,
There isn’t really a way to “disregard” image sizes in WordPress. In order to get an image from WordPress, you have to tell it what size to get. There are a number of predefined sizes available.
That being said WordPress allows you to get the original image as it was uploaded using the size
full. FPW doesn’t currently have an option to get the “full” size image because this is generally a bad idea since that would mean a full-resolution image from a digital camera (5mb-6mb or more) could potentially be sent to ever visitor’s browser. You can override this limitation by creating a custom HTML template and then changing out the line that says:the_post_thumbnail( $thumbsize );to:
the_post_thumbnail( 'full' );Thanks for using the plugin!
Hi Mizziness,
Sorry you’re having trouble. I’m not sure what the trouble might be here. Just for testing, have you tried reversing the Order: Ascending to Descending or vise-versa?
Also, have you tried the Ignore sticky posts option? It shouldn’t matter, but it’s worth trying in this case. Finally, does this happen if you try a different taxonomy (such as Tags)?Forum: Plugins
In reply to: [Flexible Posts Widget] categories not showingHi wpelvis,
Sorry you’re having trouble. A couple things to try right away:
- Do terms from other taxonomies such as Tags or Post Formats (if your theme supports those) appear?
- If you switch to a different theme, does it work then?
Finally, is the site publicly accessible? If it is, would you be willing to give me access to the admin area so I can take a look for you?
Forum: Plugins
In reply to: [Flexible Posts Widget] Using FPW to Display Posts on Static HomepageHi Jorge,
I’d suggest starting by reading the documentation and checking the existing support threads as what you’re stating you’d like to do has already been discussed here.
There is one thing I will point out right away: FPW is by its very nature a widget, so it only works in a sidebar/widget area. In your case, you’d just want to create a new sidebar that is only used on your static homepage and use FPW there.
Thanks for using the plugin!
Forum: Plugins
In reply to: [Flexible Posts Widget] custom HTML output templateHi Jon,
I’d love to find out why it wasn’t working. What were the results of the suggestions I made above? Were you able to see your posts using the standard template? What about the other steps?
Thanks!
Forum: Plugins
In reply to: [Flexible Posts Widget] custom HTML output templateHi Jon,
Since I haven’t heard back from you, I’m going to assume that this is working. Feel free to post back here if you continue to have trouble. Thanks!
Forum: Plugins
In reply to: [Flexible Posts Widget] Editing The TemplateHi Xarcell,
Something like this should do the trick:
<?php // Get the feature image source for use as background... $src = $style = ''; if( has_post_thumbnail() ) { $src = wp_get_attachment_image_src( get_post_thumbnail_id(), 'project-large' ); $style = ' style="background:url(' . $src[0] . ') center center no-repeat;" '; } ?> <li id="post-<?php the_ID(); ?>" <?php post_class(); ?><?php echo $style; ?>>In this example, I’m getting the feature image’s source URL using
wp_get_attachment_image_src()and then setting<li>style attribute to the use that image source for the background image.Cheers,
Forum: Plugins
In reply to: [Flexible Posts Widget] custom HTML output templateHi Jon,
Thanks for trying out the plugin. I’ve got a couple ideas on why this might be. First, does the widget display content if you don’t use the custom template? If it does not, then you know the issue is related to the get posts & display options, not your custom template.
If the widget does display posts using the default template, and still does not display posts with your custom template, I’d check a few things:
- Did you properly create the
flexible-posts-widgetfolder directly in the root of your current theme folder? - Is your custom template file directly within the
flexible-posts-widgetfolder in your theme root? - Try naming your custom template file with a filename that doesn’t start with a number, possibly
widget1.phpor something along those lines. - Are you getting any debug notices or errors?
If none of those work, feel free to post back here. If the site is accessible online somewhere, I may be able to take a quick look for you.
Sorry for the trouble,
Forum: Plugins
In reply to: [Flexible Posts Widget] PHP code commented when a category is empyif you remove or comment out those three lines, you should get the results you’re looking for.
Forum: Plugins
In reply to: [Flexible Posts Widget] PHP code commented when a category is empyThat would be great. To create the Italian MO & PO file, you’d want to download the plugin’s POT file and open it in an editor like Poedit. Poedit will create the correct PO & MO files for you after you’ve translated the text strings in the POT file.
if this is not up your alley or too much work, I completely understand. Thanks again!
Forum: Plugins
In reply to: [Flexible Posts Widget] Solution – inserting full postsHi Lance,
Thanks for posting this. I’m sure it will be helpful for others! Cheers!
Forum: Plugins
In reply to: [Flexible Posts Widget] PHP code commented when a category is empyHi Adriano,
Thanks for using the plugin. If I understand your question correctly, you’d like widget to have no text output if it doesn’t find any posts. If that is your question, it is possible. You’ll want to create a custom HTML template first. Then in your custom HTML template, you want to remove the following lines of code:
<?php else: // We have no posts ?> <div class="dpe-flexible-posts no-posts"> <p><?php _e( 'No post found', 'flexible-posts-widget' ); ?></p> </div> <?phpBy removing the code in the PHP
elseblock, the widget will display nothing if there are no results.By the way, it appears the site you referenced is written in Italian. If you created an Italian translation for Flexible Posts Widget, I would love to include it with the plugin. Would you be open to sharing your translation files (PO & MO) with me?
Thank you!
Forum: Plugins
In reply to: [Flexible Posts Widget] Flexible Posts Widget internationalizationAwesome. Thanks!
Forum: Plugins
In reply to: [Flexible Posts Widget] Polish translationAwesome. Thank you!
Forum: Plugins
In reply to: [Flexible Posts Widget] Polish translationGreat! The POT is ready to translate now. You can get the updated POT file here.
Thanks again!