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

  1. gonzagarg
    Posted 2 years 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
    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.


  2. Mike Martel
    Plugin Author

    Posted 2 years ago #


    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!


  3. gonzagarg
    Posted 2 years ago #

    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 Martel
    Plugin Author

    Posted 2 years 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.


  5. gonzagarg
    Posted 2 years ago #

    Thanks again, Mike!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Tiles
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.