smadeira / ministry-platform-api

Ministry Platform REST API wrapper
MIT License
10 stars 7 forks source link

WordPress #1

Closed jasontucker closed 6 years ago

jasontucker commented 6 years ago

I noticed some of your projects are built to be used with WordPress, have you made this library setup for WordPress use?

I'm building an intranet using WordPress and I wanted to list all of the birthdays our staff for this month and the upcoming month, I have a group with the staff in them I just need to look up their birthdays from their contact record and list their name and birthday. Where should I start with this?

smadeira commented 6 years ago

It isn't setup as a WP plugin but I am using it on our web site as a plugin. I pull the code down locally, use composer to update it and grab the dependencies, write the actual wp-specific code like shortcodes, etc. and then push the whole thing up to WP as a plugin and activate it. No fancy interface in admin or anything like that. Just code that runs. For my needs that has worked and I haven't had to learn much WP (which is a bonus.)


Scott Madeira

On Thu, Mar 22, 2018 at 1:37 PM, Jason Tucker notifications@github.com wrote:

I noticed some of your projects are built to be used with WordPress, have you made this library setup for WordPress use?

I'm building an intranet using WordPress and I wanted to list all of the birthdays our staff for this month and the upcoming month, I have a group with the staff in them I just need to look up their birthdays from their contact record and list their name and birthday. Where should I start with this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/smadeira/ministry-platform-api/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AEnKbOC2gSPSP-gm-PTfMF9bHq90xeuHks5tg-FLgaJpZM4S3fjZ .

jasontucker commented 6 years ago

Do you by chance have any code you'd be will to share as a gist? I'm just getting my feet wet with using an API and doing so with WordPress so anything you can share would be greatly appreciated.

smadeira commented 6 years ago

You can check this out https://github.com/smadeira/mp-wordpress-plugin I put it together to try and integate the API into our wordpress site. It will get you started. I am NOT a WordPress developer so there may be numerous issues with the code but it does work. Hope that helps.