CustomPress: How to make a custom field that uses custom posts?

I have a few issues with custom post types.

1. I want to make a custom field which requires a custom post as an entry. Example is if I have a custom post type "Person" and want a custom field for mother or father this field should autocomplete and require to be another person entry that was already added.

2. I want to make a checkbox for a binary value "Do not show in scholars table" which would be false by default as a custom field but don't see how to do this.

3. I want to make a custom post type "Book" but want "site.com/bookname" to be the table of contents and introduction but for the chapters to be at "site.com/bookname/1" and maybe if you can recommend a way that I could also "Publish to PDF" a while book without PressBooks. Also the book author would have to be a "Person" added in #1.

4. I want to make a custom post type for reference books specifically which would allow chapter and section references so going to "site.com/bookname" would be an intro and list of chapters like before but you would add chapters and items so "site.com/bookname/1/1" would list item 1 in chapter 1 but "site.com/bookname/1" would list all items of that chapter and you could also do "site.com/bookname/1/1-3" to list those 3 items. A real life example of this would be:

http://quran.com
http://quran.com/1
http://quran.com/1/2
http://quran.com/1/2-4

or

http://sunnah.com/bukhari
http://sunnah.com/bukhari/1
http://sunnah.com/bukhari/1/3

5. I want to know if there is a specific way to make an "Add Person" button on the frontend which pops up a modal and form to add people on the front end.

6. I want to put permissions so any logged in user can Add New Person or Edit Own People or Edit All People, etc. but may want to change this to Author, Editor, Admin roles if abuse becomes an issue... so our CustomPress items can be edited wiki style... especially if this can be done from the frontend

I know some of this would fall under CustomPress usage or features and others I would have to code but would like guidance on each item. Thank you.

  • Jude
    • DEV MAN

    Howdy @admin1903

    Hope you're keeping well !

    1) You can create the Person CPTs out of the box, but the fields with auto complete need custom code.

    2) Do you mean when the Scholars table is queried ? You can create the custom field but Im not sure about the logic for its functionality yet. Please clarify

    3) This will again need custom code to do. You can of course create books and chapters but the re-write rules and the pdf need custom code.

    4) This will need custom rewrite rules and query mods based on the url, once again in the custom code domain.

    5) This should be possible quite easily. See below
    http://teachingyou.net/wordpress/wordpress-post-from-the-front-end-with-a-custom-post-type/

    6) Custom Press supports role level permissions for the Post Types so you should be able to fine tune who can do what on the site.

    Hope that clarifies

    Cheers
    Jude

  • us-Sunnah
    • Design Lord, Child of Thor

    1. Would custom fields that can require values be a custom post be a reasonable feature request to be done timely? So that you can add a "Book" and make a custom field author that requires selecting a "Person" entry or the above Person posts requiring a Person entry for mother, father, teachers (plural), etc.?

    2. Would it also be reasonable to have custom fields that are checkboxes for binary (true/false) values?

    The other issues I will look into coding and reply later.

    • Jude
      • DEV MAN

      Hi again @admin1903

      Sorry about the delay here, while we cant give out time frames on feature requests. I can tell you ( you can also verify this historically ) we implement feature requests based on how many members request the feature.

      So the more the people who want something , the faster it makes it to a release. It does help if its something easy to do :wink:

      Hope that clarifies

      Jude

  • Jude
    • DEV MAN

    Hi again @ussunnah

    While the products are GPL licensed, the development track itself is not public. So the best way if you do develop a solution is post it here ( or better still, in a new thread ) If we find members using / downloading it and if the code quality meets our standards ( and WP guidelines ) we'll ping the developers who will find a way to refactor it into the core product.

    Hope that clarifies

    Cheers
    Jude

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.