Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] Custom PHP code shown as HTML


  #1  
Old Mar 29, 2013, 06:03 PM
typo
 
8 posts · Mar 2013
Hi there,

I am using Code Snippets and Insert PHP together with the Montezuma theme.

The pages are able to resolve the PHP to generate dynamic content.

However, the interesting thing is that the page also shows my PHP codes after the dynamic content.

You can view it here

Have everyone encountered this before? How should I resolve this issue? Thanks

Last edited by typo; Mar 29, 2013 at 06:29 PM.
  #2  
Old Mar 29, 2013, 06:42 PM
juggledad's Avatar
juggledad
 
23,655 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
how are you using them?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Mar 29, 2013, 06:49 PM
typo
 
8 posts · Mar 2013
Not sure that I understand your question.

I use the [insert_php] tags for the php codes. They work as intended. Just that the php codes are also generated as content.

I also call functions using code snippet.

You can view the link in my original post.

Thank you.
  #4  
Old Mar 29, 2013, 07:23 PM
juggledad's Avatar
juggledad
 
23,655 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
i just put
HTML Code:
[insert_php]echo 'hello World<br>'; [/insert_php]
into as post and it worked fine. Try shutting off all oter plugins and see if there is a conflict
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Apr 1, 2013, 12:04 AM
typo
 
8 posts · Mar 2013
thank you for your prompt replies despite this issue not relating to the theme.

I have deactivated Insert PHP and used Allow PHP in Posts and Pages plugin instead.

This resolves the issue

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to put html-code between logo and rss SilverStreet Header configuration & styling 1 May 8, 2011 03:17 PM
[SOLVED] plugin for a html sitemap which can be shown in a navigation bar guvenp Plugins & Atahualpa 2 Nov 19, 2010 07:43 AM
Where is CSS / HTML code to edit? JulieBMack Plugins & Atahualpa 3 Jul 25, 2010 07:22 PM
Can I put HTML code into the right margin? CreativePartyLady Forum How-To 1 Oct 11, 2009 06:16 AM
Google Analystic not shown even I add the code... yosh66 Plugins & Atahualpa 6 Jul 9, 2009 02:37 PM


All times are GMT -6. The time now is 05:14 AM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.