Title: Shortcode doesnt work
Last modified: December 2, 2021

---

# Shortcode doesnt work

 *  [acabar8](https://wordpress.org/support/users/acabar8/)
 * (@acabar8)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/shortcode-doesnt-work-84/)
 * I want to render button on header. I tried to call shortcode in header.php
    `
   <?php echo do_shortcode([ethpress_login_button]'); ?>` `<?php echo apply_filters('
   the_content',' [ethpress_login_button] '); ?>` No one of this methods doesnt 
   work.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [lynn999](https://wordpress.org/support/users/lynn999/)
 * (@lynn999)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/shortcode-doesnt-work-84/#post-15125011)
 * Does it work on a post, then? In the “regular way”.
 *  [dw64](https://wordpress.org/support/users/dw64/)
 * (@dw64)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/shortcode-doesnt-work-84/#post-15178629)
 * Hello. I add Shortcod on page, but it did`nt shows anything.
 *  [tigerfund](https://wordpress.org/support/users/tigerfund/)
 * (@tigerfund)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/shortcode-doesnt-work-84/#post-15198188)
 * Same here. Cant use ethpress anymore! Is there any method for this to work?
 *  Plugin Author [ethereumicoio](https://wordpress.org/support/users/ethereumicoio/)
 * (@ethereumicoio)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/shortcode-doesnt-work-84/#post-15319017)
 * Hi,
 * The only reason the EthPress Login button is not shown is if user is already 
   logged in:
 *     ```
       if ( \is_user_logged_in() ) {
       	return '';
       }
       ```
   
 * Make sure to test it in an anonymous browser window please.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Shortcode doesnt work’ is closed to new replies.

 * ![](https://ps.w.org/ethpress/assets/icon-256x256.png?rev=2371493)
 * [EthPress - Web3 Login](https://wordpress.org/plugins/ethpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ethpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ethpress/)
 * [Active Topics](https://wordpress.org/support/plugin/ethpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ethpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ethpress/reviews/)

 * 4 replies
 * 5 participants
 * Last reply from: [ethereumicoio](https://wordpress.org/support/users/ethereumicoio/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/shortcode-doesnt-work-84/#post-15319017)
 * Status: not resolved