Exceeded the virtual memory limit

It is impossible to guess how is memory spent in your site. In context of WordPress it will simply obey PHP memory limit and will crash upon reaching it. Your description sounds more like the total of server memory, which isn’t just WP, but everything on server (including web server software, database software, and so … Read more

wordpress or jquery a dynamic photo gallery

It seems that you are looking for a plugin that applies masonry layout on your photos. When selecting appropriate WP plugin keep in mind that you presumably want one that gives you whole gallery functionality (lightbox, lazy-load or pagination etc.) Free version of this plugin seems to have at least some of these. As for … Read more

How to show random feed from DB and show content in my site

It’s difficult to answer this, but here are some suggestions: Make sure your feeds are valid, e.g. here. In the case of is_wp_error( $rss ) giving true, you can check the corresponding error message with $rss->get_error_message(). Develop with WP_DEBUG activated. Don’t use mysql_query(), it’s deprecated since PHP 5.5. Use the $wpdb object to fetch data … Read more

PM PRO addon package check user access to a specific post

Got the answer figured out,dont know exactly what was wrong but just entered the ID( i.e 376) in each section instead of $post_id[0] array. Would be glad to know if something was wrong in the code I posted in my question. Thanks EDIT Was using $post_id[] = array(361,369,367,371,476); instead of $post_id = array(361,369,367,371,476);

Simple Share Buttons Add Plugin and Custom Post Type

Here is the solution : You need to hook an action to remove ssba button. Wp action runs pretty early and allow you to remove the ssba filter on the content which add the buttons list. function remove_share_buttons_custom_post() { if (in_array(get_post_type(),array(‘sar’))) { remove_filter( ‘the_content’, ‘show_share_buttons’); } } add_action(‘wp’, ‘remove_share_buttons_custom_post’);

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!!!