Language switcher with flags – Polylang WP plugin

In meantime, maybe I have on.. I do not want to use some big scripts or something so I did this simple one.. I will write here if somebody else need it.. 1.) I create sidebar in my theme, and add it to header <div class=”drop-dl”> <a class=”lang-chose” href=”#”><img src=””> Chose language</a> <?php get_sidebar(); ?> … Read more

How to show in front End images using Visual Composer attach_images?

$gallery = shortcode_atts( array( ‘post_gallery’ => ‘post_gallery’, ), $atts ); $image_ids=explode(‘,’,$gallery[‘post_gallery’]); $sigle_img = wp_get_attachment_image_src($image_ids[0], “large”); $img=”<div id=’tourGallery’><img class=”imgthumb” id=” src=””.$sigle_img[0].”” style=”width:100%” alt=””></div><div id=’galleryThumbs’>”; for($i=0;$i<=9;$i++) { if($image_ids[$i]!=””) { $imgs = wp_get_attachment_image_src($image_ids[$i], “large”); $img.=”<div><img class=”imgthumb” id=” src=””.$imgs[0].”” style=”width:100%” alt=””></div>”; } } $img.=”</div></div>”; return $img; Achieved!!!

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