frankmarks
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Uncategorized URL but product live & categorizedHi thup90,
thank you, but I do not want to change the slug of the Rotwein category. This category was only an example. This issue happens across all categories, across different sites.
Could this be a settings issue? I am regularly emptying the transients cache and cleaning other items in the status –> tools section. Could cleaning or purging any of the elements in that section lead to the phenomenon I describe? If not, is there any other area I could check to fix the issue? I had also re-saved the WordPress permalinks settings but that did not help either..
BR, FrankForum: Fixing WordPress
In reply to: Category overview page with number of postsDear Joy, perfect, the Categories-block solution works well for me. Thank you so much!!
Forum: Plugins
In reply to: [WooCommerce] How to make the last breadcrumb element a H1 heading?Dear crslz,
Thank you so much for the anwer above, I already implemented it in my child-theme and it works just great!!
Appreciate your help.Best regards.
Hi Both,
Thanks for your suggestions and support.
In both cases, the page isn’t loaded when I access it as a subscriber, the CSS loader spins endless and in the console I see the following error: Failed to load resource: the server responded with a status of 500 ().
I want to make it as easy as possible and prefer to use Asif’s solution as it uses core functionality. but somehow it doesn’t seem to work. With the page, I am also loading several page-specific Javascript files using the wp_enqueue_script function, in functions.php. Could this somehow cause the error? I believe not, because blocking the page for guest viewers with the code
if( is_user_logged_in() ) { echo "you're logged in and can view this"; }works just fine!Thanks for any further ideas and suggestions.
Best, Frank
I figured out a solution which worked for me, found here:
Update: After some changes to the page temnplate’s PHP code, the restricted page now displays the default “access restricted message” to viewers who aren’t logged in.
However, right below that message, the page continues to show the restricted content. I have inserted the Ultimate Member short codes as follows, which doesn’t seem to work:
<?php do_shortcode("[um_loggedin show_lock=yes]"); ?> ...restricted html and javascript code... <?php do_shortcode("[/um_loggedin]"); ?>How can I restrict access to the content generated by the “restricted html and javascript code”?
Thanks for any hints and suggestions, I appreciate it.