Forum Replies Created

Viewing 13 replies - 16 through 28 (of 28 total)
  • Thread Starter GWKaplan

    (@gwkaplan)

    It’s a strange problem. In the maintime I’ve tried to upload an image, which it did apparently, but there is no 2022 folder in uploads. So I think something is blocking uploads.
    I’m in touch with my hosting to see if they can find the problem
    Thanks

    Thread Starter GWKaplan

    (@gwkaplan)

    I forgot to say. Yes I’ve checked and there is no Complianz folder inside /uploads/

    Thread Starter GWKaplan

    (@gwkaplan)

    I’ve saved the settings and it doesn’t show. It doesn’t show in the preview of the cookie banner settings either. And I also tried disabling everything with Health Check & Troubleshooting plugin, only having Complianz active and it didn’t work.
    Thanks

    Thread Starter GWKaplan

    (@gwkaplan)

    Uploads folder is on 755 and it has folders from other plugins

    Thread Starter GWKaplan

    (@gwkaplan)

    Thanks @heru-irawan

    Thread Starter GWKaplan

    (@gwkaplan)

    Well, actually I think it’s sort of way I analyze GTMetrix and Pingdoom tools results. GTMetrix full load time is around 2 seconds, but actually I think it’s not the most accurate metric you can use. In Pingdoom tools the speed goes down to around 200ms, which is great, but it’s not full load time. Anyway, in GTMetrix the Facebook pixel load time is around 600ms, but in Pungdoom is less than 100ms. Well, I suppose I’ll never know what is the real speed of my website or any other website. But, obviously, it doesn’t take 2 seconds to load. So I must leave it as fixed, yes. Thank you.

    Thread Starter GWKaplan

    (@gwkaplan)

    ok thank you

    Thread Starter GWKaplan

    (@gwkaplan)

    Ok thank you! I’m using Headers and Footers plugin justo to paste the code

    Forum: Plugins
    In reply to: Widget update problem
    Thread Starter GWKaplan

    (@gwkaplan)

    Here’s the code of my widget

    class gkd_img extends WP_Widget {
    
    	function __construct() {
    
    		parent::__construct('gkd_img', $name = __('GKD Featured Images'));
    
    	}
    
    	public function widget($args, $instance) {
    
    		echo '<div id="djnow" class="pWidget2">';
    		echo $args['before_widget'];
    
    		$n = $instance['num'];
    		$post = $instance['page'];
    		$page = get_permalink($post);
    
    		unset($images);
    
    		$images = get_children( array (
    
    			'post_parent' => $post,
    			'post_type' => 'attachment',
    			'posts_per_page' => $n,
    			'post_mime_type' => 'image'
    
    		));
    		//print_r($images);		
    
    		if ( empty($images) ) {
    
    			// no attachments here
    
    		} else {
    
    			foreach ( $images as $attachment_id => $attachment ) {
    
    				?>
    
    				<a href="<?php echo $page ?>" class="pImages"> <?php echo wp_get_attachment_image( $attachment_id, 'post-thumb' ); ?> </a>
    
    			<?php
    
    			}
    		}
    
    		echo $args['after_widget'];
    		echo '</div>';
    	}
    
    	public function update($new_instance, $old_instance) {
    
    		$instance['num'] = $new_instance['num'];
    		$instance['page'] = strip_tags( $new_instance['page'] );
    		return $instance;
    
    	}
    
    	public function form($instance) {
    
    		$num;
    
    		if (isset($instance['num'])) {
    			$num = $instance['num'];
    		}
    
    		echo '<p><label for="'.$this->get_field_id('num').'">Number of images:</label><br>';
    
    		?>
    		<select id="<?php echo $this->get_field_id( 'num' ); ?>" name="<?php echo $this->get_field_name( 'num' ); ?>" type="text">
    
               	<option value="0" <?php echo "0" == $num ? "selected" : ""; ?>>0</option>
    			<option value="1" <?php echo "1" == $num ? "selected" : ""; ?>>1</option>
    			<option value="2" <?php echo "2" == $num ? "selected" : ""; ?>>2</option>
    			<option value="3" <?php echo "3" == $num ? "selected" : ""; ?>>3</option>
    			<option value="4" <?php echo "4" == $num ? "selected" : ""; ?>>4</option>
    			<option value="5" <?php echo "5" == $num ? "selected" : ""; ?>>5</option>
    			<option value="6" <?php echo "6" == $num ? "selected" : ""; ?>>6</option>
    			<option value="7" <?php echo "7" == $num ? "selected" : ""; ?>>7</option>
    			<option value="8" <?php echo "8" == $num ? "selected" : ""; ?>>8</option>
    			<option value="9" <?php echo "9" == $num ? "selected" : ""; ?>>9</option>
    
            </select>
            <?php
    
    		$defaults = array('page' => __('Select the page', 'example'));
    		$instance = wp_parse_args( (array) $instance, $defaults);
    
    		echo '<p><label for="'.$this->get_field_id('page').'">Select the page:</label><br>';
    		wp_dropdown_pages(array(
    
    			'id' => $this->get_field_id('page'),
    			'name' => $this->get_field_name('page'),
    			'selected' => $instance['page']
    
    		)); 
    
    	}
    
    }
    
    function gkd_img() {
    
        register_widget( 'gkd_img' );
    
    }
    
    add_action( 'widgets_init', 'gkd_img' );
    wp_enqueue_style( 'gkd_img', plugins_url('style.css', __FILE__) );

    It is suposed to gfet images from the page user selects and show them on the homepage. But it allways shows the same ones. Its like the $images array was set once and it’s never refreshed.

    Here is the link to the page:
    https://casatagomago.com/WPweb/inicio/?language=es
    Help please!!

    Hi jefferisp7 I have the same problem. Did you find any solutions?

    Forum: Fixing WordPress
    In reply to: Image issues

    I have that same problem! Any solution found?

    Forum: Fixing WordPress
    In reply to: Menu problem
    Thread Starter GWKaplan

    (@gwkaplan)

    It’s in localhost and I don’t get any errors!!

    Thread Starter GWKaplan

    (@gwkaplan)

    What I say is that when I hit one of my menu items it doesn’t goes to its content. Instead it opens the homepage! Thank you

Viewing 13 replies - 16 through 28 (of 28 total)