WordPress Smart Iframe Browser [closed]

This should get you on track… <iframe src=”https://wordpress.stackexchange.com/questions/224947/javascript:void(0);” frameborder=”0″ style=”display:none;width:100%;margin:0;padding:0;” id=”fullsizeframe”></iframe> <a href=”http://website2.com” onclick=”loadfullsize(this.href);”>Website 2</a> <script>function loadfullsize(url) { fullsizeframe = document.getElementById(‘fullsizeframe’); fullsizeframe.href = url; fullsizeframe.style.height = window.clientHeight; return false; } </script> Note the problem here is you have to insert the iframe HTML directly after the <body> tag (and have no CSS width rules on … Read more

WordPress restriction to the whole website

This can be done as concisely as follows (in your theme functions.php or a plugin): function wpse_231970_lockdown() { if ( ! is_user_logged_in() ) { global $wp; /** * Redirect to login page with redirect back to current request. */ wp_redirect( wp_login_url( $wp->request ) ); exit; } } add_action( ‘template_redirect’, ‘wpse_231970_lockdown’ );

How can i display portfolio images in WordPress?

First Try this to get the thumbnails, $size default is ‘thumbnail’: wp_get_attachment_image( $attachment_id, $size, $icon, $attr ); Second This code not tested with your code. Swap out the (taxonomy) for your tag. Check out this page for more information about the columns you are building in your category page. Manage $taxonomy id columns function my_custom_(taxonomy)_columns( … Read more

ACF Plugin WP with list-group – Vimeo [closed]

This code is right ? <?php if(get_field(‘yo’)): ?> <div class=”list-group”> <?php while(has_sub_field(‘yo’)): ?> <a href=”#” data-id=”vimeo-player-1″ data-seek=”<?php the_sub_field(‘dataseek_meta’); ?>” class=”timecode list-group-item list-group-item-action”><i class=”fa fa-play-circle-o” aria-hidden=”true”></i><?php the_sub_field(‘seek_name’); ?><span class=”badge”><?php the_sub_field(‘dataseek’); ?></span></a> <?php endwhile; ?> Thanks

Windows Azure Storage for WordPress plugin not listing blob containers [closed]

The answer is to install the php xml package: sudo apt-get install php-xml <br/> sudo service php7.0-fpm restart <br/> sudo service nginx restart I discovered the actual problem one of the log files: 2017/10/16 22:14:07 [error] 14850#14850: *1090 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function simplexml_load_string() in … Read more

Translate text for empty product

In your function ‘translate_text’ variable $product is not initialized, so the price is always empty. You need to provide the $product for use inside the function, consider the function, it should be global. Try modifying function: function translate_text($translated) { global $product; if ($product && empty($product->price)){ $translated = str_ireplace(‘Weiterlesen’, ‘Contact US’, $translated); } return $translated; } … Read more