Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hank Brekke

    (@z43-studio)

    It looks like you’re using an older version of PHP that’s not supported.

    You’ll need PHP 5.3.0 or newer. But keep in mind that 5.3.0 was released in 2009 (five years ago now). In other words, you are using an EXTREMELY outdated version of PHP. If you manage your server yourself, it is definitely something you should check on. If you pay a web host, you should contact them soon and ask about upgrading their PHP version. Some web hosts require you to rename the .php extension with .php5 to use the newer versions of PHP–your host would explain this.

    http://stackoverflow.com/questions/3635945/callback-function-in-array-filter

    Plugin Author Hank Brekke

    (@z43-studio)

    Currently the Codeblocks plugin uses the Advanced Custom Fields plugin to insert it’s meta box in the post editor.

    While your method works for removing the filter to strictly post and page type posts, the more practical way to remove this filter is to remove the location array of /acf-group.php directly inside the plugin (line 16).

    I will likely remove this restriction in a future release, after I have tested Codeblocks with more custom post types.

    Plugin Author Hank Brekke

    (@z43-studio)

    In the administration, there should be an option to title your blocks of code. This feature is optional, but can help organize your structure. The title field is directly above each block of code.

    If you are not using the titles feature, you can simply leave out the entire title="MY_BLOCK" section and simply add [codeblock] into your article. Codeblocks will load the blocks you’ve written in the order they appear below.

    The benefit of adding a title is in case the order of the blocks below changes, or you decide to rearrange the order in your article, as currently there is no rearranging feature in the Codeblocks section itself.

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