How to output cmb2 wysiwyg by using timber

So, I figured it out through this post..Applying oembed filters to WYSIWYG field My solution by using timber/twig is to get the data in the single.php, and here is the code: $post_meta = get_post_meta(get_the_ID(),’my_wysiswg’, true); $post_meta = $wp_embed->autoembed( $post_meta ); $post_meta = $wp_embed->run_shortcode( $post_meta ); $post_meta = do_shortcode( $post_meta ); $post_meta = wpautop( $post_meta ); … Read more

Child Plugin Admin Panel

I’m assuming you’re asking how to remove the first action, which the plugin has created? Removing an action is really easy – all you need to do is call remove_action like this: remove_action(“admin_init”, “backend_plugin_css_scripts_mail_bank”); Then add your replacement action. You need to ensure that you remove the action after it has been added (because otherwise … Read more

Infinite scroll for text in post with url page change

You will need to modify (or create your own) the script that does the loading to change the URL once he loads a new page. Changing the URL may not be so simple, but you can have a look at this question for tips: https://stackoverflow.com/questions/824349/modify-the-url-without-reloading-the-page

How to insert current “login” page to certain page?

I am not completely sure what you mean, but it looks like you are looking for is_user_logged_in. You can use this test in your templates to test if a user is logged in and display information accordingly. In this fassion: if (is_user_logged_in()) { … show some content … } else { echo “Please, login first”; … Read more

cmb2 select option output [closed]

If you need to display select options value rather then key then you have to use an options callback function for this. like this, add_action( ‘cmb2_admin_init’, ‘your_function_name’ ); function your_function_name() { $prefix = ‘your_prifix_’; /** * Sample metabox to demonstrate each field type included */ $cmb = new_cmb2_box( array( ‘id’ => $prefix . ‘metabox’, ‘title’ … Read more