bnafz
Forum Replies Created
-
Forum: Plugins
In reply to: [PowerPress Podcasting plugin by Blubrry] Exclude Scheduled Posts from FeedThanks for pointing me in the right direction.
I’m still not sure why my scheduled posts were being made public but I used the code below to fix my issue.
function PublishedPostsFeed($query) {
if ($query->is_feed) {
$query->set(‘post_status’,’publish’);
}
return $query;
}
add_filter(‘pre_get_posts’,’PublishedPostsFeed’);Forum: Plugins
In reply to: [PowerPress Podcasting plugin by Blubrry] Exclude Scheduled Posts from FeedHere is the link to the PowerPress feed: https://integrityresource.org/feed/podcast/
The items that have a future pubDate are scheduled posts within WordPress.
Thanks for the help!
Thank you for your quick response!!
Do you need the Categorizer Add-On to be able to filter by tags as well?
Thanks again.
Forum: Plugins
In reply to: [Adminimize] Php Warning filling up error_log file on serverHi Frank,
I just wanted to let you know that I had the same issue as klihelp.
The version you posted above fixed the issue for me.
Thank you!!
Forum: Plugins
In reply to: [Plugin Name: Device Theme Switcher] Link to switch back to desktop theme?Blah (facepalm)…
Sorry, I didn’t even think about looking within the widgets area.
Thank you for the quick response!
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] Checkbox Filter Not Loading ProductsHi Dima,
That update fixed the issue!
Something happened though with the fix. When you apply a filter, the area above (with the sorting drop-down) duplicates. So the products keep falling down farther on the screen. You can see it in action here: https://hackermotor.staging.wpengine.com/product-category/motors
I can revert back to the old version of the plugin and remove the styler of the checkboxes/input fields if you don’t have time to investigate this.
Let me know what you think. Thanks!
Thank you for the feedback.
I temporarily fixed the issue by adding this to your plugin’s includes/function.php file:
function loop_columns() { return 3; // 3 products per row }
I understand this will be overwritten when I update the plugin, but this will work for now.
Thanks again for all the help.
Hi Dima,
It looks like with this theme, it is setting the amount of products per row within the content-product.php template.
This is the code that looks like it is setting the amount:
// Store column count for displaying the grid if ( empty( $woocommerce_loop['columns'] ) ) $woocommerce_loop['columns'] = apply_filters( 'loop_shop_columns', 4 );
Thank you for your help!
Forum: Plugins
In reply to: [Friends Only] Session Time Expires Once Closing The BrowserSorry this has been resolved.
Forum: Plugins
In reply to: [Friends Only] Use Cookies Instead of SessionsHi sorry to bother you again. I have been going back and forth with WP Engine, and this was their response. Is there any way you could do any of this.
If not, I totally understand.
“I took a look at the “Friends Only” plugin, both the current version and the older cookie-based version. As it stands right now, we won’t be able to effectively support using this plugin in our environment. However, if the plugin author were willing to make a few changes, we could help you get it running on your site. here are the changes that would need to be made:
Eliminate the use of Sessions, and use cookies instead. WordPress is designed to be stateless, which is why it natively uses Cookies instead of Sessions. In addition, Sessions have a lot of issues to be aware of, as described here: https://wpengine.com/support/cookies-and-php-sessions/.
Implement a WordPress filter when determining whether the “Sentry” portion of the code should be used.
Here is an example of what I mean for item 2 above. Here is a section of the current plugin code:// If the user is logged in then don’t show the sentry
if (is_user_logged_in()) {
return;
}
// If the user is requesting media (mostly RSS readers and subscription emails), then let them view the media
elseif (strpos($request_path, $base_WP_path.’/wp-content/uploads’) === 0) {
return;
}
// If this is a wp-cron request, then don’t show the sentry (used for running scheduled tasks)
elseif (strpos($request_path, $base_WP_path.’/wp-cron.php’) === 0) {
return;
}
// If the user is requesting a FeedWrangler feed, then don’t show the sentry
elseif (strpos($request_path, $base_WP_path.’/?feed=’) === 0) {
return;
}
// If the user is not logged in, but they are trying to log in, then let them see the login page
elseif ((strpos($request_path, $base_WP_path.’/wp-admin/’) === 0) || (strpos($request_path, $base_WP_path.’/wp-login.php’) === 0)) {
return;
}
// If the user is trying to access XML-RPC then don’t show the sentry
elseif (strpos($request_path, $base_WP_path.’/xmlrpc.php’) === 0) {
return;
}
// If the user is trying to run BackWPUp then don’t show the sentry
elseif (($_SERVER[‘SERVER_ADDR’] == $_SERVER[‘REMOTE_ADDR’]) && (strpos($request_URI, ‘backwpup’) > 0)) {
return;
}
Here is how that code could be adjusted to implement a WordPress filter:// Use the sentry by default.
$sentry_off = false;// If the user is logged in then don’t show the sentry
if ( is_user_logged_in() ) {
$sentry_off = true;
}
// If the user is requesting media (mostly RSS readers and subscription emails), then let them view the media
elseif ( strpos( $request_path, $base_WP_path . ‘/wp-content/uploads’ ) === 0 ) {
$sentry_off = true;
}
// If this is a wp-cron request, then don’t show the sentry (used for running scheduled tasks)
elseif ( strpos( $request_path, $base_WP_path . ‘/wp-cron.php’ ) === 0 ) {
$sentry_off = true;
}
// If the user is requesting a FeedWrangler feed, then don’t show the sentry
elseif ( strpos( $request_path, $base_WP_path . ‘/?feed=’ ) === 0 ) {
$sentry_off = true;
}
// If the user is not logged in, but they are trying to log in, then let them see the login page
elseif ( ( strpos( $request_path, $base_WP_path . ‘/wp-admin/’ ) === 0 ) || ( strpos( $request_path, $base_WP_path . ‘/wp-login.php’ ) === 0 ) ) {
$sentry_off = true;
}
// If the user is trying to access XML-RPC then don’t show the sentry
elseif ( strpos( $request_path, $base_WP_path . ‘/xmlrpc.php’ ) === 0 ) {
$sentry_off = true;
}
// If the user is trying to run BackWPUp then don’t show the sentry
elseif ( ( $_SERVER[‘SERVER_ADDR’] == $_SERVER[‘REMOTE_ADDR’] ) && ( strpos( $request_URI, ‘backwpup’ ) > 0 ) ) {
$sentry_off = true;
}// Possibly return without doing anything
if ( apply_filters( ‘fo_sentry_off’, $sentry_off ) ) {
return;
}
With the fo_sentry_off filter as seen above, that would allow custom handling to determine whether the “sentry” should be used or not. The reason for this addition is because technically speaking, even using cookies will not work with our caching environment. However, that doesn’t mean that there’s nothing that can be done.Because you are intending to use this plugin on multiple sites, if the plugin author is willing to make the changes described above, I would be happy to write a simple plugin to extend its functionality to work on our platform.
I will freely admit that what I am offering to do is a bit outside the scope of our normal support. However, I don’t anticipate this customization requiring excessive work on our end, and so I’m willing to be flexible to help out if possible. If you’re willing to reach out to the plugin author again, please let me know what his response is.”
Thanks
Forum: Plugins
In reply to: [Friends Only] Use Cookies Instead of SessionsHi Gabe,
Thanks a lot for your help! I installed the older version and it still didn’t work with WP Engine’s caching.
I have contacted WP Engine and they said they would work with me to get the older version of the plugin (that uses cookies) to work. Their response was: “Can you please show me an example of what one of those cookies being set would look like?”
Is there a way you could send me the cookie that is set with the older version of the plugin? My email is blake [at] nafzinger [dot] com
Thanks again for all the help, it is much appreciated.
Forum: Plugins
In reply to: [Q and A FAQ and Knowledge Base for WordPress] Active or current classHi,
Thank you. The code worked perfectly.
I had to make sure “Accordion behavior” was unchecked in the admin area because when the plugin automatically closes an FAQ, it kept the active class appended.
Thanks again for the code!!
Forum: Plugins
In reply to: [Q and A FAQ and Knowledge Base for WordPress] Active or current classI would also like this ability.
Anyone know how this could be accomplished? I’ve tried a few things with jQuery but my knowledge with jQuery is limited.
Thanks in advance.