Support » Theme: Customizr » wp_loginout() in footer

  • Resolved Siggi0904

    (@siggi0904)


    Hello,

    I’d like to add the wp_loginout() function to the footer.
    I created a function in functions.php.

    But the wp_loginout() won’t be in the <p> function of the sprint().

    Whats wrong with that?
    Here is my custom function from the functions.php

    add_filter( 'tc_credits_display', 'my_credits_display' );
    function my_credits_display($html) {
        ?>
        <div class="span4 credits">
            <?php
                $credits =  sprintf( '<p> · © %1$s <a href="%2$s" title="%3$s" rel="bookmark">%3$s</a> · %4$s ·</p>',
                        esc_attr( date( 'Y' ) ),
                        esc_url( home_url() ),
                        esc_attr(get_bloginfo()),
    					'<a href="'.TC_WEBSITE.'">Themes & Co.</a>'
                );
                echo $credits;
    	    $anmelden =  sprintf( '<p> · %1$s · </p>',esc_url(wp_loginout()));
    	    echo $anmelden;
            ?>
        </div>
        <?php
    }

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘wp_loginout() in footer’ is closed to new replies.