trickz100
Forum Replies Created
-
Forum: Plugins
In reply to: [Widget Logic] Logic Conditions not working in 5.8.*Ok, so I’ve figured out what the problem was. The save button had disappeared from the widgets I had made. No idea why, but I’ve reworked them all and now I can save them, and the category logic works again.
Forum: Plugins
In reply to: [Widget Logic] Latest version completely broke the siteI’ve also had issues with logic conditions on the new version. They work with 5.7.4 but not with 5.8. With 5.8, all widgets are being displayed on all categories, where I had used the category logic to display certain widgets on certain categories.
For example:
is_category('a-state-of-trance') || is_single() && in_category('a-state-of-trance')
I’ve also reverted back to the older version until the next update.
Kind regards
Forum: Plugins
In reply to: [Snow] Update 2.0 ProblemHi Mitch!
Thanks for the update, it works great now!
Kind regards
Forum: Reviews
In reply to: [Facebook Comments] Works great.A prompt to update to WordPress 4.6 appeared this morning in the admin panel, and after updating, Facebook Comments are now showing again. Not sure what the issue was, but it seems to be working now.
Forum: Reviews
In reply to: [Facebook Comments] Works great.Same issue here. Ever since new update, fb comments only shows tall whitespace with no comment box at all.
Forum: Fixing WordPress
In reply to: How to Add Self-Hosted Videos into PostsHi there,
Ok I figured it out. It turns out .avi format sucks on browsers! I’ve managed to get mp4 format working so it looks like I have a lot of converting to do!
Many thanks
Forum: Fixing WordPress
In reply to: Display Shortcode for Specific RolesThanks dude, all the best ??
Forum: Fixing WordPress
In reply to: Display Shortcode for Specific RolesHello again,
Ok after a few hours playing with code and searching around online, I managed to come up with a working code to fit my needs!
// REMOVE ADVERT SHORTCODE FOR EVERYONE EXCEPT SUBSCRIBERS // if( current_user_can('administrator') || current_user_can('premium_member') || !is_user_logged_in() ) { function remove_advert_first_part($content) { return str_replace('[pre_ad adid="2957"]', '', $content); } add_filter( 'the_content', 'remove_advert_first_part', 6); } if( current_user_can('administrator') || current_user_can('premium_member') || !is_user_logged_in() ) { function remove_advert_second_part($content) { return str_replace('[/pre_ad]', '', $content); } add_filter( 'the_content', 'remove_advert_second_part', 6); }
The above code will remove [pre_ad adid=”2957″][/pre_ad] for Administrators, Premium Members and those who are not logged in. It also keeps the content in between.
I’m not sure if you can place two parts of a shortcode within one function or not, but since I couldn’t figure that part out, I made two functions, one to removed the first part of the shortcode, and one to remove the second and it works just as well.
Thanks very much for your time and help still, it really means a lot and I hope this code can be of some use to others!
-Trickz100
Forum: Fixing WordPress
In reply to: Display Shortcode for Specific RolesThanks for the info! I’ll look into it ??
Forum: Fixing WordPress
In reply to: Display Shortcode for Specific RolesIt’s using two plugins, “WordPress Download Manager” and “WP Pre Advertisement”
The shortcodes were taken after generating download packages and advert packages.
Is there not a way of using Strip Shortcodes?
I am putting the shortcodes into every post. (I havn’t added the advert code yet as I want to show it only to certain users, once the issue is solved, i’ll then add them to the over 2800 posts there are on the website)
My website is https://www.astateoftrance.co.uk
Forum: Fixing WordPress
In reply to: Display Shortcode for Specific Rolesif it renders or not
– I am unsure how to check that :/
Forum: Fixing WordPress
In reply to: Display Shortcode for Specific RolesHello,
Yes I’d be happy to modify theme files, I am using a different theme than the default WordPress themes.
are the nest shortcodes that you are currently using functioning as expected?
– I assume so, not sure.
Forum: Fixing WordPress
In reply to: Display Shortcode for Specific RolesHello,
Thank you for your time to help out, but sadly it isn’t working on my website.
I’ll try to be more specific if I can;
I am using two plugins in each post that use shortcodes.
1) Download Manager
2) AdvertisingThe outcome: [pre_ad adid=”2957″][wpdm_package id=’23947′][/pre_ad]
Now, [wpdm_package id=’23947′] is “the content” and I need to hide [pre_ad adid=”2957″][/pre_ad] for everyone, except Subscribers.
I have tried a few plugins that involve wrapping these with yet another shortcode, but sadly it doesn’t seem to be working ??
Forum: Fixing WordPress
In reply to: Show Total Post Count on HomepageMultidots, thanks very much for your reply!
The code you have provided has done the trick!
Many thanks for your time and help! ??
Forum: Reviews
In reply to: [WP Pace] Great!I’m well aware of what the margin style does.
I’m not going to sit here and argue about it, all I can say is that this plugin does not work on my site for those who are not logged in without the changes I’ve made above.