Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter judgedredd

    (@judgedredd20)

    The only reason I installed this version of WP is because of the plugin. And the fact that you have stated that ‘…is too old for us to support here.’ makes a mockery of community based support.

    This community is not a corporation like Microsoft and there are still people using the older version of WP because of the bloatware that WP has become and the fact that Gutenburg is now a part of the package whereas before people had a choice as to whether to install and use it or not.

    My purpose was to install WP, use the plugin to import an HTML site and then export or migrate it over to Classic Press. Since no help will be forthcoming here I will go elsewhere.

    Thread Starter judgedredd

    (@judgedredd20)

    Gerry, everything you gave in your recent post worked apart from having to correct the class. The code that worked was:

    /* hide Twenty Seventeen single post thumbnail */
    .single-post .single-featured-image-header {
      display: none;
    }

    The link text doesn’t flow that nicely around the thumbnail so that’s the next item to deal with but according to my initial query this thread is solved.

    bcworkz, I understand what you are saying but the implementation is a bit beyond me at the moment (I know HTML and CSS very well but know only the basics of PHP). What I find frustrating is that the documentation for all the functions state what they are and gives the syntax for them (how they are written as stand alone functions) but do not give a working example of how they should be used. Unfortunately, that’s the way these ‘technical’ docs seem to be always written.

    Gerry was able to show how to implement a function by creating the variable that made things work the way I wanted them to, but it wouldn’t be good for everyone if code was being written for me all the time.

    Thank you to both of you for taking the time to help on this issue.

    • This reply was modified 2 years, 11 months ago by judgedredd.
    • This reply was modified 2 years, 11 months ago by judgedredd.
    • This reply was modified 2 years, 11 months ago by judgedredd.
    Thread Starter judgedredd

    (@judgedredd20)

    I have looked at the code in the Recent Posts with Image plugin and found this section of code:

    /**
    	 * Returns the thumbnail of first post's image or empty string on failure
    	 *
    	 * @access   private
    	 * @since     2.0
    	 *
    	 * @return    bool    success on finding an image
    	 */
    	private function the_first_post_image ( $attr ) {
    		// look for first image
    		$thumb_id = $this->get_first_content_image_id();
    		// if there is first image then show first image
    		if ( $thumb_id ) :
    			return wp_get_attachment_image( $thumb_id, $this->customs[ 'thumb_dimensions' ], $attr );
    		else :
    			return '';
    		endif; // thumb_id
    	}
    

    I wondering if I can somehow use the above code to create the thumbnail where I want it by plugging it into the functions.php file for the Twentyseventeen theme and calling it somehow in the page where I need it.

    Note: When I do set a featured image it does appear on the front page in the Recent Posts area against the post where the Featured Image was enabled, but it was HUGE (the original size of the image). So Gerry’s code does work when the Featured Image is set, but since I have not set any featured images the thumbnail doesn’t appear.

    • This reply was modified 2 years, 11 months ago by judgedredd.
    • This reply was modified 2 years, 11 months ago by judgedredd.
    Thread Starter judgedredd

    (@judgedredd20)

    Hi bcworkz,

    I checked the functions.php file in the Twentyseventeeen folder and it does have the add_theme_support( 'post-thumbnails' ); line in it.

    When activating the Featured Image in the editor box it looked awful on the post page, making the top of the post go out of whack with the rest of the page so I didn’t implement it. When using the ‘Recent Posts with Image’ plugin it does take the first image in the post and posts it as a thumbnail in the extras section of the standalone post page (to the right of the main content on a laptop or desktop or underneath the post on a mobile device). I posted about this on the support page for the plugin and he mentioned the that functions get-the-post-thumbnail() and the_post_thumbnail() should help.

    So I am a bit stumped as to why the code given by Gerry doesn’t work. Can I designate an image in the editor box but have it not appear? I could probably do this via CSS using the display:none; parameter but would have to probably add a class so that it would not display only on the post page itself.

    • This reply was modified 2 years, 11 months ago by Kathryn Presner.
    • This reply was modified 2 years, 11 months ago by judgedredd.
    Thread Starter judgedredd

    (@judgedredd20)

    Hi Gerry,

    Thanks for the time and effort you put into your reply. Much appreciated. I adjusted my code (actually swapped out what was there for your code because I had changed it to something else) but the thumbnails still do not appear. I had to adjust the code as well as there was a diamond with a question mark being thrown up to the left of each post. The adjustment was:

      echo '<li>', '&raquo;', $my_img, '<a href="', get_permalink($post['ID']), '">', $post['post_title'], '</a></li>';
        }

    I did look at the page you provided the link to but it was not easy to understand how to implement the function I require, which you have shown nicely. Is there something that is lacking somewhere in any of the files or the script? The theme I am using is Twentyseventeen. The theme works brilliantly when one clicks on the one of the posts in the Recent Posts area or on the ‘My Blog’ menu link at the top. Its just this one little thing on the front page I am trying to get working (thumbnail beside the post title).

    • This reply was modified 2 years, 11 months ago by judgedredd. Reason: spelling error
    • This reply was modified 2 years, 11 months ago by judgedredd.
    Thread Starter judgedredd

    (@judgedredd20)

    Dear Steven and Samuel,

    Thank you very much for the thorough response. I had no idea that ww.wp.xz.cn and WordPress.com were two separate and individual entities. Thanks for clarifying that and for confirming that there is no censorship on a private site when using WP.

    These answers have initiated a complete change in my thinking about WordPress (when downloaded from ww.wp.xz.cn).

    Thread Starter judgedredd

    (@judgedredd20)

    I understand that ww.wp.xz.cn doesn’t provide hosting but the two, ww.wp.xz.cn and WordPress.com are related, are they not?

    You still haven’t really answered the censorship question though.

    On sites that are private (independent of WordPress.com, in that sites are not hosted there) but use the WordPress software (downloaded from Wordpres.org) there is absolutely NO censorship of content?

    Whereas using WordPress on the WordPress.com platform there is because one is using the platform and therefore it’s a service being provided by WordPress.com and WordPress.com can therefore limit what content is shown?

    • This reply was modified 3 years, 7 months ago by judgedredd.
    • This reply was modified 3 years, 7 months ago by judgedredd.
Viewing 8 replies - 1 through 8 (of 8 total)