Own theme – only [newsletter] instead of the form Home › Forums › Newsletter Plugin Support › Own theme – only [newsletter] instead of the form This topic has 5 replies, 2 voices, and was last updated 9 years, 4 months ago by sebastian. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts January 26, 2014 at 5:56 pm #10394 sebastianParticipant Hello, the title describes the problem: I have written a theme for wordpress, but after activation the newsletter-site has gone and only [newsletter] is shown. In other themes, the plugin works great! Is there a special method I have to call? Thanks, Sebastian January 26, 2014 at 6:04 pm #10395 StefanoKeymaster How do you display the content of a page in your theme? January 26, 2014 at 6:08 pm #10396 sebastianParticipant Hi, first I have done it with get_the_content(), later with the_content(). My single page is domain.com/blog/newsletter-abonnieren, and I have tried: if (strpos($_SERVER['SCRIPT_FILENAME'], "newsletter") !== false) { the_content(); } else { my_own_function_with_get_the_content...(); } January 26, 2014 at 6:17 pm #10397 sebastianParticipant Oh my… of course it doesn’t work. with $_SERVER['SCRIPT_FILENAME'] the result is always false, because it is always “path/index.php”. With $_SERVER['REQUEST_URI'] it works. Sorry… January 26, 2014 at 6:40 pm #10398 StefanoKeymaster But this way you’re blocking all plugin which have short codes. In your get content use the do_shortcode(). January 26, 2014 at 8:49 pm #10403 sebastianParticipant Hello Stefano, thank you very much for your great support. I use WordPress only in a very clean and small scenario, but thank you! With my solution, I think I will have no problem with your plugin, right? I will have a look in this do_shortcode-method anyway. Best regards, Sebastian Author Posts Check out our premium plans with priority support. Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In