mysql - jQuery Custom app integration with Wordpress -
i created html/jquery app, running embedding within 1 of pages raw html.
website has wishlist member plugin running.
i need integrate app wordpress in such way, able save/retrieve json data in database, under current user, user can have access it.
i still fresh in programming, , help/direction highly appreciated.
i find answer myself, , wasn't difficult after all... create custom template page, needs php file:
<?php /** * template name: custom name * */ ?> <!doctype html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <!-- page title, displayed in browser bar --> <title><?php bloginfo('name'); ?> | <?php is_home() ? bloginfo('description') : wp_title(''); ?></title> <!-- add feeds, pingback , stuff--> <link rel="profile" href="http://gmpg.org/xfn/11" /> <?php wp_head(); ?> </head> <body id="top"> <div class='container_wrap' id='main'> <div class='container'> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php the_content(); ?> <?php endwhile; ?> <?php endif; ?> </div> <?php wp_footer(); ?> <!-- html content here--> </body> </html>
"your custom name" shown inside wordpress page , on right hand side, can choose custom template.
you can insert code inside "your html content here".
i find template here https://premium.wpmudev.org/forums/topic/blank-wordpress-template-no-header-no-footer-no-sidebar?utm_expid=3606929-109.p6e7jvhjtrwfxwrjzjrkog.0
now, best place insert file inside child theme folder, safest way. if need instructions child theme, there article http://www.wpbeginner.com/beginners-guide/how-to-install-a-wordpress-child-theme/
that worked me. luck!
Comments
Post a Comment