Beda Schmid

Document Design Theme Templates With Toolset Layouts And Toolset Blocks

Who wouldn’t want it: control over your entire Theme Template, inclusive header, footer, sidebars using a simple Drag’n’Drop to quickly design the Layout of the Templates using Toolset Layouts, and design the Contents of each Layout section using the n …

Document tkt_treeview_post_type()

The tkt_treeview_posts_type Filter can be used to change the Post Type queried by the Hierarchical Posts Tree plugin. Arguments:$post_type – slug [The post type slug to query] Example: add_filter( ‘tkt_treeview_posts_type’, ‘change_the_post_type’ ); fu …

Document Add Options to Toolset Checkboxes Field

This is an unofficial filter, not documented, but works, whereas the documented does not. It allows you to programmatically populate a Toolset Types Checkboxes Field. //filter wpcf_fields_{field-type}_meta_data //$field_options (options array of field) …

Document Show all actions and filters run on current queried object

This is an advanced class helpful when debugging issues on WordPress with themes and plugins. Add it to a theme’s function.php and load any page, or perform any action (for example you can die() a cred_save_data() to see what’s hooked in this moment, e …

Document Disable Toolset GUI Buttons on FrontEnd TinyMCE Instances

Toolset buttons (Fields and Views, Forms, Access) are visible on all TinyMCE Instances, hence as well in FrontEnd Forms using TinyMCE Editor of WordPress (wp_editor), when users with role author+ and when insert media option is enabled in the editor. Y …

Document Group Posts by Date (year and month)

This ShortCode let’s you “group” posts in a View by their Publish Date, by year and then month. To use it, add this to functions.php: add_shortcode(‘heading’, ‘my_heading’); function my_heading($atts, $content = ”) { static $year = null; static $month …

Document Inline Language Switcher – Flags/Code/Code+Flags

Inline (horizontal) custom language selector with different options such as Flags only, Code only, Flags + Code with divisor.Take the time to study the code. To use call wpml_custom_language_selector(); in a template function wpml_custom_language_selec …