Theme My Login
widget duplicates TML Profile [theme-my-login] content (1 post)

  1. anindyaray
    Posted 5 years ago #

    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.


    TML 6.1.4
    WP 3.2.1
    Weaver 2.2


    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 .

    Thank You


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Theme My Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic