Viewing 5 replies - 1 through 5 (of 5 total)
  • I am unsure what you are asking. Do you want to display posts on your frontpage, or are you trying to treat your frontpage like a post, and wish to display it elsewhere? It looks like you are already displaying posts on your frontpage in the manor that this plugin functions. If you are trying to display your frontpage elsewhere for some reason, perhaps an iframe would be the way to go. Also, from the several articles I looked at, they appeared to be copied directly from other sources. As far as I am aware, that is kind of frowned upon and legally questionable at best.

    Thread Starter andrewdickens90

    (@andrewdickens90)

    Thanks for the reply.

    Basically, this page shows the following list, using a tag

    https://www.creatables.co/projects/

    However if you look at this page, this is what i’m trying to achieve?

    https://www.creatables.co/browse/design/

    Just looking to keep the styling of the blog posts the same.

    Andrew

    I think I understand. My first thought would be that there must be a way to do display the items on the /products page in the same way they are being displayed on the browse/design page. I assume your theme is creating those pages based on categories? Can you not make a “projects” category and pull that list in the same way? If not, you can sort of use this plugin shortcode something like this:

    [display-posts tag=”advanced” posts_per_page=”20″ include_excerpt=”true” display-posts image_size=”thumbnail”]

    There are a bunch of configurable options, this is just an example. For all the arguments, go here;

    https://github.com/billerickson/display-posts-shortcode/wiki

    Unfortunately, I don’t know how offhand how you would go about getting that yellow category box in the top left corner of the thumbnail to show up other than some php functions. Also, I can’t guarantee that it would be responsive in the way the other post excerpts are either. And you will need to use a bunch of css to style the output from this plugin.

    Thread Starter andrewdickens90

    (@andrewdickens90)

    Cheers for the suggestion. I had used this plugin and got so far but the thumbnail size i way larger than what i’d like it to be. I’ve changed the size in settings? Any ideas?

    Will try and style it using css, anythings better than just text on a page ??

    Add this code into your them’s funtions.php file.

    if ( function_exists( 'add_theme_support' ) ) {
    	add_theme_support( 'post-thumbnails' );
            set_post_thumbnail_size( 150, 150 ); // default Post Thumbnail dimensions
    }
    
    if ( function_exists( 'add_image_size' ) ) {
    	add_image_size( 'category-thumb', 300, 9999 ); //300 pixels wide (and unlimited height)
    	add_image_size( 'homepage-thumb', 220, 180, true ); //(cropped)
    }

    Then just change “category-thumb” or “homepage-thumb” to whatever you want, or leave them as is and change their dimensions. Then you replace “thumbnail” with what you named the new thumbnail size. So using the code above, your shortcode would look like:

    [display-posts tag=”advanced” image_size=”category-thumb”]

    instead of the default:

    [display-posts tag=”advanced” image_size=”thumbnail”]

    I cant remember, but you may need to set a featured image for this to work as well.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display Posts’ is closed to new replies.