Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme updates, examples for common use-cases #22

Closed
3 of 9 tasks
sc0ttkclark opened this issue Aug 17, 2015 · 13 comments
Closed
3 of 9 tasks

Readme updates, examples for common use-cases #22

sc0ttkclark opened this issue Aug 17, 2015 · 13 comments
Assignees
Labels
archived Issues from an archived version of the Fields API help wanted

Comments

@sc0ttkclark
Copy link
Owner

Update specs with more details on usage of Fields API by third party apps/plugins, refresh readme so it's more clear and concise.

  • Main Readme refresh

Objects in order of progress, then by priority:

@sc0ttkclark sc0ttkclark modified the milestone: Fields API 0.1 Sep 29, 2015
@sc0ttkclark sc0ttkclark self-assigned this Sep 29, 2015
@sc0ttkclark sc0ttkclark changed the title Update specs with more details on usage of Fields API by third party apps/plugins [8.0] Readme updates, examples for common use-cases Oct 9, 2015
@sc0ttkclark
Copy link
Owner Author

@tomharrigan and @nicholasio you are now owners of the use-cases / examples for your associated areas. Please flesh out 3-5 section + fields examples for each of your implementations and save them into /examples/{implementation}/{example}.md in the Repo

@sc0ttkclark
Copy link
Owner Author

@wpsmith is now heading up the media prototype, you are also now in charge of the use-cases / examples for your associated area. Please flesh out 3-5 section + fields examples for your implementation and save them into /examples/media/{example}.md in the Repo.

sc0ttkclark added a commit that referenced this issue Oct 19, 2015
@Mte90
Copy link

Mte90 commented Dec 15, 2015

Example are very interesting to evaluate the level of that feature plugin

@Mte90
Copy link

Mte90 commented Jan 13, 2016

To start on that i've studied the test files but i don't understand how to use the library.
I have to try with a phpdoc generation but without an example is very difficult to start.

@overclokk
Copy link

Me too

@sc0ttkclark
Copy link
Owner Author

Here's the current User Edit screen implementation, it's the best example I have right now for you as it's been my primary focus on testing the limits of the Fields API.

https://github.com/sc0ttkclark/wordpress-fields-api/blob/master/implementation/wp-admin/includes/class-wp-fields-api-user-profile.php

@msykes
Copy link

msykes commented Jan 13, 2016

A typical example of a user section containing address information would be helpful, so for example:

section – address

  • address 1 (text)
  • address 2 (text)
  • town/city (text)
  • county/state (text)
  • Zip (text)
  • country (DDM)

@sc0ttkclark
Copy link
Owner Author

Added address example to my new examples and docs pages that are about to go up :)

@sc0ttkclark
Copy link
Owner Author

Added new doc page for Creating an Implementation (useful for those coming to help out with what we've got going already, based on User / Term screens we did):

https://github.com/sc0ttkclark/wordpress-fields-api/blob/master/docs/creating-an-implementation.md

Added some new examples too --

User Profile Screen:

Term Add / Edit Screen:

I would love to get some more use-cases so I can add more examples!

@sc0ttkclark
Copy link
Owner Author

Added new doc page for Registering Fields and it's pretty comprehensive in walking you through what everything is and how to pull it all together.

https://github.com/sc0ttkclark/wordpress-fields-api/blob/master/docs/registering-fields.md

Also updated the main README.md to link to these new docs/examples:

https://github.com/sc0ttkclark/wordpress-fields-api/blob/master/README.md

sc0ttkclark added a commit that referenced this issue Jan 28, 2016
sc0ttkclark added a commit that referenced this issue Jan 28, 2016
@sc0ttkclark sc0ttkclark changed the title [8.0] Readme updates, examples for common use-cases Readme updates, examples for common use-cases Feb 1, 2016
@lucyllewy
Copy link

Example fields for a CPT for "products" being sold (this is probably one of the more complex scenarios I can think of quickly):

  • Price (floating point numeric / text-field with validation or cast-to-float),
  • Taxable (boolean / checkbox),
  • Customizations (uses fields-api to display configuration selections for front-end output which would also be driven by fields-api)
    • expandable array of text-fields
    • each text-field associated with dropdown listing available field-types registered to the fields-api, for the admin to choose for front-end display
    • include expandable nested array for multiple-choices when the fields api shows on the front-end

@baerkins
Copy link

Pages - I often need a subtitle and page header text separate from content.

What is the possibility for having a 'repeater' style field (a la ACF) on a page or custom post type? This would involve more than just the fields API (as I'm sure js would be required), but its a situation I often require. Use case: a page has a staff section, rather than making a custom post type, you just build a series of fields (name, position, email, etc) that can be added and deleted.

@szepeviktor
Copy link

Could you add

  • Repeatable field implementation example?

@sc0ttkclark sc0ttkclark added the archived Issues from an archived version of the Fields API label Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
archived Issues from an archived version of the Fields API help wanted
Projects
None yet
Development

No branches or pull requests

7 participants