Hank Brekke
Forum Replies Created
-
Forum: Plugins
In reply to: [Codeblocks] Error when activatingIt 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
Forum: Plugins
In reply to: [Codeblocks] Codeblocks with custom post types?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
postandpagetype posts, the more practical way to remove this filter is to remove thelocationarray of/acf-group.phpdirectly 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.
Forum: Plugins
In reply to: [Codeblocks] Using CodeblocksIn 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.