WordPress.org

Ready to get started?Download WordPress

Forums

WP Tiles
[resolved] Location of php file (5 posts)

  1. gonzagarg
    Member
    Posted 6 months ago #

    Hi, I'm a newbie with php. I managed to sort out what I needed to do simply with shortcode but I got a doubt anyway.
    I read the instructions to copy the filter code (the published gist) to the functions.php file, but this post
    http://wordpress.org/support/topic/rather-amazing-plugin?replies=3#post-5086305
    suggests the creation of a separate php file.
    I tried to ask the author of the question but got told of by the moderator, so I have to ask it here. Where do you put the wptile-page.php file and what is the difference to doing in a separate php file or copying it to the functions.php?
    Nice plugin.
    Cheers.

    http://wordpress.org/plugins/wp-tiles/

  2. Mike
    Member
    Plugin Author

    Posted 6 months ago #

    Hi!

    You can put the code straight in your functions.php if you want. In the review, @atkantor created a page template especially for pages where they wanted the static tiles to show up specifically.

    If you add the code from the gist to your functions.php, every instance of WP Tiles will have the static tiles included.

    Let me know if this answers your question!

    Cheers,
    Mike

  3. gonzagarg
    Member
    Posted 6 months ago #

    Mike,
    Thanks for the prompt and very clear reply. I just want to check that once I copy the gist code into a new functions.php file in my child theme the Add custom field box should show a new field to be selected from the dropbox. This is not happening now (using Twenty Fourteen theme) and I am sure that it is reading the functions.php file (If I add an extra <?php at the beginning it shows an error when I try to see the page that has the tiles). If it should automatically create the field, then I am guessing I may have a problem with the theme or other plugins.
    Once again, thank you for the plugin and the quick reply.

  4. Mike
    Member
    Plugin Author

    Posted 6 months ago #

    You're welcome :)
    The fields in the custom field metabox only show fields that have been used in the past, so you should add the first one manually. Go to your page and paste set up the tile-position field manually. On the next page, the field should show up in the dropdown.

    Mike

  5. gonzagarg
    Member
    Posted 6 months ago #

    Thanks again, Mike!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.