Upgrading from Pagely Multi Edit to Multiple Content Blocks by Trendwerk

Pagely  Multi Edit is still causing problems on several of our sites but can be replaced by Multiple Content Blocks by Trendwork.

Template

Change

multieditDisplay('RightColumn');

to

the_block('right column');

Database

In wp_postmeta change meta_key

multiedit_RightColumn

to

_mcb-right-column

This can be achieved by running the following query for example

UPDATE wp_postmeta SET meta_key = REPLACE(meta_key, 'multiedit_RightColumn', '_mcb-right-column');

 

NOTES:

  • Postmeta field names in Multiple Content Blocks are lowercase and spaces become dashes. eg. _mcb-right-column
  • Template areas can have capitals and spaces eg. the_block(‘Right Column’)
  • Pagely MultiEdit requires a line of code in the commented area of the template to define the editable regions used. This becomes redundant so can be removed
<?php
/* Template Name: Custom Template
*  MultiEdit: Right,Bottom,Left
*/
?>

 

Leave a Comment