0

I bought a real estate theme and want to use the property listing data that I get from a paid plugin.

The plugin listing data is clean, and stored in the WP database.

The theme uses custom post types so I'm trying to bridge my plugin data to the theme.

Thanks!

  • 1
    Sounds possible for sure! is that your only question? For more specifics we'd need more to go on... :) – Michelle Nov 10 '16 at 19:00
  • Does the plugin also use a custom post type? – JHoffmann Nov 10 '16 at 19:02
  • @Michelle yes that's all that I need :P -- anything specifically you need to know? – DoingMyBest Nov 10 '16 at 19:17
  • @JHoffmann yes, it seems the plugin (soldpress) does use a custom post type. – DoingMyBest Nov 10 '16 at 19:17
  • If you're using Soldpress, is there a reason you don't want to use their templates / display options? it seems like that would be easier than recreating the display by custom-coding your theme. – Michelle Nov 10 '16 at 20:36
1

I'm putting this in as an "answer" just to give you pointers on where to start. Once you have specific questions concerning code you'll probably want to ask new questions.

First, I'd create a child theme. (Look on Google, there are tons of examples/tutorials on how to do that.)

In your child theme, create template files for the relevant custom post type. (I'd copy the archive.php and single.php files from your parent theme into your child theme, then edit the filenames.) Typically these would be named archive-CUSTOM_POST_TYPE_NAME.php and single-CUSTOM_POST_TYPE_NAME.php.

On those two template files you should be able to reference/display the custom fields created by the plugin using get_post_meta().

If all works as expected, voila and hooray! But there may be challenges depending on how the plugin is written and how it stores the information, so be sure to check back with the plugin creator and us before it drives you crazy. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.