• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Embedding PHP or iFrame within page.

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Embedding PHP or iFrame within page.

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 12 years, 6 months ago by Davinder Singh Kainth.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 27, 2013 at 12:47 am #81363
    CruiseDirections
    Member

    Non-Profit site has a php script used for listing available dogs for adoption. There is a built in "install" that allows us to either use PHP or IFrame to insert in a web page.

    USING PHP INCLUDE

    Step 1. Copy and paste following code at very top in your page, before any other code.

    <?php
    ob_start();
    ?>

    Step 2. Copy and paste following code inside your html code, where the search form and result will be displayed.

    {APP_TPL}

    Step 3. Copy and paste following code at very bottom in your page, after all the code.

    <?php include '/home/pjabbers/public_html/demo/pl_10/listings.php'; ?>

    Versus:

    USING IFRAME

    Copy the code below and put it in your web page where you want the pet listing to appear.

    <iframe src="http://www.phpjabbers.com/demo/pl_10/listings.php?controller=Listings&action=index&iframe" style="width: 800px; height: 600px" frameborder="0"></iframe>

    Which would you use and why? Looking for the best way to include our database into WordPress

    December 27, 2013 at 2:11 am #81369
    Davinder Singh Kainth
    Member

    Have you tried this plugin - http://wordpress.org/plugins/allow-php-in-posts-and-pages/


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble