Viewing 2 reply threads
  • Author
    Posts
    • #8786
      nnovosad
      Participant

      Hello.
      How to create meta-boxes for a blog page?
      For a regular page I do so

      /*
      Title: Jobs Section
      Post Type: page
      Lock: true
      Template: template-contact
      Order: 12
      */

      What should I specify for the blog page?

    • #8788
      Ico
      Member

      You can make different page template ( ex page-your-blog.php ), then add metaboxes for this page template and the from WP menu select this page as a blog page.

    • #8823
      Steve
      Keymaster

      @nnovosad– your code looks fine to me. Just and a field to it. Then

      1) Add a new page
      2) select your page template from the WordPress dropdown
      3) Save draft
      4) Your fields should show up.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.