how to put php code in a wordpress page -


i have created custom page in wordpress , in page have form users can upload banner, , input text.

the code working on local server. problem when transfer live page, displayed text instead of working normally.

i have tried search page in cpanel have later realized pages not stored normal pages stored in database.

please me how make form work.

you can't put php code (this code not content) post content admin panel. php file must created (or using functions.php) serve page , put code there.

find , open functions.php file. located under wp-content/themes/yourthemename/ folder. @ end of file (but before ?> symbols if exist) add code

function custom_function_for_your_page() {     // put php code here } add_shortcode( 'custom_functionality', 'custom_function_for_your_page' ); 

now guess, can put php code right below line // put php code here. shortcode. can put shortcode page content. open page admin panel, you've tried put php code. instead of code put [custom_functionality].

good luck :) tell me if doesn't work, we'll try more.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -