PHP Using PHP code from a plugin within a wordpress page
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Using PHP code from a plugin within a wordpress page

  1. #1
    Join Date
    Oct 2013
    Posts
    2

    Question Using PHP code from a plugin within a wordpress page

    Hello! I'm working on a real estate website using wordpress. I'm pretty familiar with the ins and outs of wordpress. We are using a plugin that basically pulls from a database for real estate. This plugin generates "virtual pages" that cannot be found anywhere in wordpress, which display the homes and various property searches.

    My problem with this is that there is absolutely no way to customize these "virtual pages", since they are generated by various PHP functions. Now I see that there are php pages that coordinate with the sections from the plugin. For example, one of the virtual pages is called "Map Search". In the plugin folder I found a php page called mapsearch.php.

    I thought that I could grab the code from one of the php pages, create a custom page template, named "template-mapsearch.php" and insert the code from the mapsearch.php file into the custom page, however when choosing this custom page from the template menu within the wordpress page editor, nothing seems to happen.

    My best guess is that the code doesn't know what to do since it is not within the plugin folder. Any thoughts on how to do this?

    Any help would greatly be appreciated.

  2. #2
    Join Date
    Oct 2013
    Posts
    2

    Re: Using PHP code from a plugin within a wordpress page

    I figured out a work around. I basically created wordpress page templates for each optima express page, that contain a sidebar widget area for each optima express page.. if that makes sense lol. Kinda quirky, but it works.

  3. #3
    Join Date
    Feb 2012
    Location
    Fremont,CA
    Posts
    36

    Re: Using PHP code from a plugin within a wordpress page

    Well, If you are looking for edit dynamic pages in wordpress, I dont think so oyu can handle this through dashboard. You have to make edits in database.

    And this step is very critical you can loss your data as well...
    Make sure you check out my >>Facebook Development Blog and Website<<

  4. #4
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,868

    Re: Using PHP code from a plugin within a wordpress page

    Please remember to keep your posts relevant kevin619. This thread is already 5 months old and from an original poster who has not spent any other time in these forums.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  5. #5
    Join Date
    Feb 2012
    Location
    Fremont,CA
    Posts
    36

    Re: Using PHP code from a plugin within a wordpress page

    I was not active here from couple of months, that is way I just found this thread and replied. Next time I will check before posting.
    Make sure you check out my >>Facebook Development Blog and Website<<

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center