This is a question asked by mark in the Theme my Login forum : TML Forum TOPIC
My main use for the widget is to display the login fields when not logged in and the user links when logged in.
The widget is displayed in one specific sidebar. Themed profiles are enabled.
Now, if the page containing the [theme-my-login] shortcode shows the profile (i.e. action=profile), the widget instance no longer displays the user links, but duplicates the profile fields.
The Solution Provided by Jeff Farthing is as below :
Well, TML assumes that if the shortcode is called in_the_loop() that it is the actual “Login” page. If the loop is not properly called, in_the_loop may always return true, thus displaying the page content in the widget as well. If you can’t/won’t do a proper loop, you can try to explicitly set it to false right before the widget:
<?php $GLOBALS['wp_query']->in_the_loop = false; ?>
I want to know that is this the correct solution for the weaver theme as I am facing the same problem . If the solution is correct then where to place the above mentioned code. If not then please kindly provide a solution for this plugin .
- The topic ‘widget duplicates TML Profile [theme-my-login] content’ is closed to new replies.