• Resolved pmars

    (@pmars)


    Just purchased WebAssist Power Gallery. Posting the php code in my blog shows as php code, not PowerGallery. I must be missing something simple here… any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Well, you shouldn’t post php in your posts, if that’s what you mean. Most likely they give you php, it goes in your theme. What exactly do they tell you to do?

    Thread Starter pmars

    (@pmars)

    The PowerGallery code is php. “Paste code into your HTML webpage”.

    WP uses php, but the pages are html, and as an html page, I am wondering how to add a php Power Gallery to my WP blog. Just wondering what I’m doing wrong because the php code displays as php code, not the Photo Gallery like on every other website on the planet.

    Ok, so if you’d like it to display on a certain page, do the following:

    1. Duplicate your theme’s page.php
    2. Add the following at the top:
      <?php
      /* Template Name: Power Gallery */
      ?>
    3. Then insert your code right after <?php the_content(); ?>
    4. Save the file as gallery.php or something similar
    5. Then create a new page, and to the right where it says “Page Template”, select the Power Gallery Page Template.

    Let me know if that’s what you had in mind.

    Thread Starter pmars

    (@pmars)

    I’ll try it… thanks

    Thread Starter pmars

    (@pmars)

    Gallery pics folder goes in “wp root folder” (or whatever you named it)
    then followed instructions on this page. (download a plugin and activate)

    http://www.hongkiat.com/blog/execute-php-in-wordpress-post-page-and-widget-sidebar/

    Allows you to directly use php code on a page/post or sidebar using this markup.

    <phpcode> content </phpcode>

    Works great!

    Great, I’m glad that worked for you. That’s a good resource for the future as well.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Power Gallery on WP?’ is closed to new replies.