Viewing 1 reply thread
  • Author
    Posts
    • #2852
      jcrist
      Member

      Sorry this may be more of a general WP question, let me know if I should ask somewhere else. I’m creating a plugin that creates a CPT “portfolio_item” with has_archive => true. I would like to allow the user to easily change the posts_per_page and the permalink slug. As I see it I have 2 options:

      1. Create a settings page (inside the custom post type submenu) with these options. Easily done with Piklist.

      2. Use WordPress’ register_setting field and add each option to their respective pages — permalink slug to Settings > Permalinks and posts_per_page to Settings > Reading. Is this possible using Piklist’s meta_boxes?

      Now option 2 seems like more of a “WordPress way” of doing things as I find settings pages to be unnecessary though using one here may make more sense to keep everything centralized.

      Any opinions or suggestions are appreciated.

    • #2864
      Steve
      Keymaster

      @jcrist– Option #2 isn’t possible… yet. Option #1 is the way to go.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.