DaveE
Forum Replies Created
-
Forum: Plugins
In reply to: [Flexible Posts Widget] Order the posts according the ID'sHi JJ,
You’ll want to choose “Post ID Order” from the list of Order posts by options. Cheers!
Forum: Plugins
In reply to: [Flexible Posts Widget] Flexible post widget cuts of my postHi Johanna,
I’n not sure I understand your issue. Are you referring to the text that appears when you click on a post link shown in FPW from the home page such as the post titled This is not just an app? In that case, the layout and contents of the page are driven by your site’s theme. FPW has no control over that content.
If you’re referring to the text that appears on your website’s homepage inside the FPW itself, such as the text that appears for the same post and says, “Sagan om Skype har nog inte gått någon förbi? En av medgrundarna till Skype ,Janus Friis har åter gett sig…” then the issue would be that your FPW template is using
the_excerpt()instead ofthe_content(). These are both standard WordPress functions and not used by FPW by default. Your FPW template must be custom, so you would need to edit your custom template to adjust that output.Hopefully that helps. Thanks for using the plugin!
Forum: Plugins
In reply to: [Flexible Posts Widget] Custom field in flexible post query?Howdy,
Yup, it is possible to adjust the query called by the widget via a hook that is in place just before the widget runs the query: $args = apply_filters( ‘dpe_fpw_args’, $args );
Here’s a thread with example usage.
Cheers!
Forum: Plugins
In reply to: [Flexible Posts Widget] categry & also post title show in dropdownHi Sagar,
I’m sorry, but I really don’t understand your issue or question. Can you try to clarify things for me a bit?
Thanks!
Forum: Plugins
In reply to: [Flexible Posts Widget] content overwritten by contact formHi ReveDreams,
This is a very common scenario when a plugin or other code doesn’t properly reset the post data after doing something custom to the content of a post or page. I would be willing to bet that the plugin in question doesn’t do any kind of limiting to what the_content they are filtering when the add the output from the form submission.
Asking the SpamShield developer to add a check for
is_main_query()would easily resolve this.FWIW, this issue would affect any post content that is generated outside of the main loop.
Forum: Plugins
In reply to: [Flexible Posts Widget] Get smallest thumbnailGlad you got it figured out!
I’m not sure I understand your question here, but there are many ways that different file sizes can/could be created and WordPress will always pick the next largest size available for the size requested. So, if you request a 150×150 image and the only size available is a 600×600 version, than this the one it will use.
There are tools like the Regenerate Thumbnails plugin that will check through your image assets (media posts) and for each one make sure the correct sizes are created based on the current image sizes defined by your site’s settings and the plugin & theme declarations for image sizes.
Forum: Plugins
In reply to: [Flexible Posts Widget] Get smallest thumbnailHi The Three,
The actual image size would completely depend on the image file sizes available for WordPress to choose from. The thumbnail size would first depend on the settings you have under Settings > Media for thumbnail sizes, but even if the Thumbnail size setting is correctly set to 150×150, if there isn’t an existing 150×150 image file for that image then WordPress will pick a larger size to work with.
Is the site live somewhere where I can review the output with you?
Forum: Plugins
In reply to: [Flexible Posts Widget] Possible to do Custom Queries?It is possible to adjust the query called by the widget via a hook that is in place just before the widget runs the query:
$args = apply_filters( 'dpe_fpw_args', $args );Here’s a thread with example usage.Cheers,
Forum: Plugins
In reply to: [Flexible Posts Widget] Exclude current post in the listI’m not sure I’d be able to help you further at this point. As I stated, I am able to get the filter working just fine with Genesis for both Tax & Term or Post ID options. I’d suggest disabling other plugins to see if maybe there is a conflict with another plugin used on the site.
Sorry
Forum: Plugins
In reply to: [Flexible Posts Widget] Exclude current post in the listSorry for the delay,
I had a chance to test out the filter using the Genesis framework and their sample theme (the sample child theme StudioPress bundles with the Genesis Framework) and it works fine. Copied the code above into the genesis-sample theme’s
functions.phpfile.However, there is an exception. Are you getting posts by Post Type and Taxonomy & Term or by Post ID in the widget? If you’re getting posts by ID, then the filter wouldn’t apply. In that case, you’d want to adjust the filter as follows:
function current_recent_post( $args ) { if( is_singular() ) $args['post__not_in'] = array( get_the_ID() ); return $args; } add_filter( 'dpe_fpw_args', 'current_recent_post' );If you aren’t getting posts by ID and the filter isn’t working, then the only other suggestion I have is that maybe another plugin or theme filter is causing the issue? I’ve found that other plugins/filters have been known to override FPW’s query settings when they use filters that are too lenient (apply to too many queries).
Hopefully that helps.
Forum: Plugins
In reply to: [Flexible Posts Widget] Want to sort after "Last revision date"Glad to hear that it’s working well. At this point, you would need to create a custom output template and handle the modifications yourself.
However, I am working on a paid version of the plugin that will come with more templates, display options, etc. I’ll be sure to post an update for every one when the paid version is released.
Thanks again for using the plugin!
Forum: Plugins
In reply to: [Flexible Posts Widget] Exclude current post in the listHi Mppeter,
You’d need to paste this code into your theme’s functions.php file. Cheers!
Forum: Plugins
In reply to: [Flexible Posts Widget] New folder for custom templates?Hi lmartins,
This hasn’t changed. Per the instructions, custom templates belong in a in a folder called
flexible-posts-widgetin the currently active theme’s root folder.Cheers!
Forum: Plugins
In reply to: [Flexible Posts Widget] Support for multiple languagesThanks for being willing. Yes, explaining in more detail would be helpful. Here are my thoughts after playing a bit more with Polylang & WPML.
I think it would almost make the most sense for a widget instance to be defined for each language (not mixed) and then only displayed on the front end for that specific language using the multilingual plugin’s setting for when to show a widget.
For example, you’d create one widget that gets English posts from an English category and only shows when English is selected and a second widget to get corresponding Spanish posts from the corresponding Spanish category and only show that widget when Spanish is the selected language. Of course, that means that for each supported language a new widget would need to be created. if there are 5 supported languages, the instance management becomes tedious.
On the other side, it becomes difficult for me to figure out how best to handle showing posts from multiple languages within the same widget instance as the number of possible combinations becomes exponential.
- What are your expectations for how the term selector works with terms for each language (only show the admin language, show all language’s terms, etc)?
- What should happen to a widget that has no results from the current public language?
Thanks again for being willing to help me figure this out. I appreciate it!
Forum: Plugins
In reply to: [Flexible Posts Widget] Plugin does not maintain settings after 3.4 updateWhat version of PHP are you running? I’m on 5.5 and don’t get any errors or warnings related to those variables. They get populated (with array data if necessary) later in the code.
The Site Builder issue is because Site Builder doesn’t use a standard Widgets code that my JavaScript needs to “hook” to. It’s the same issue WordPress core ran into with the Customizer widgets panel a while back. In the end, the Customizer added a required ID to their HTML to allow widgets such as FPW to function properly. Page Builder would need to do the same to be compatible.