• Resolved callender

    (@jimcallender)


    Hi there,

    I want to use this for a number of different custom templates.

    Can you provide a couple of examples to show how the declarations are different to target by slug – ie: content-archive.php, and content-profile.php.

    Currently I can only get this working on front page, and all pages.

    Thank you,

    https://ww.wp.xz.cn/plugins/cmb2/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not quite following. Half of the implementation is getting the metaboxes into the page editors so you can set custom meta for each page.

    The rest would be querying for that saved data for the current page being displayed. At least at the basic level, this would just be a matter of using some of the helper functions from the provided examples file to fetch the post meta data and display how needed for the current page. Not really something extremely dependent on the current file being rendered.

    However, if I’m misunderstanding or missing some points, please let me know.

    Thread Starter callender

    (@jimcallender)

    thanks for the reply – i’ve sorted it now.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘using multiple cmb2 blocks’ is closed to new replies.