221 posts
  • 4 Years of Membership
  • United Kingdom
  • Author Level 3
  • Collector Level 2
+2 more
NuclearThemes
says

I’m creating a shortcode at the moment and have a filtering problem. The shortcode fetches an email address but is displayed with no @ etc.

Does anyone have a solution to get it to display properly?

2468 posts
  • 6 Years of Membership
  • Author Level 2
  • Affiliate Level 4
  • Beta Tester
+3 more
digitalimpact
says

I have a pretty good imagination, but not that good :P

221 posts
  • 4 Years of Membership
  • United Kingdom
  • Author Level 3
  • Collector Level 2
+2 more
NuclearThemes
says

Haha should have elaborated more. I was able to solve it anyway.

I was doing a plugin that has the user type in an email address and it checks if their is a user registered with that email and if so, brings up details about them. It also included a shortcode to display a form on the front end.

I can’t imagine why such a tool would be necessary but a request is a request.

I came to the conclusion WP was deciding to format the username if it showed an email address when displayed through a shortcode. In the end it was just a mistake in retrieving the details. I was using nicename instead of display name.

by
by
by
by
by
by