• wprun

    (@wordpressrun)


    I’m looking to use Custom Content Shortcodes for showing the featured image and content, where the featured image is inline with the content, at the top and left aligned.

    This seems to work:

    [loop include=this]
    <span class = “alignleft”>[field image]</span>[content]
    [/loop]

    I worked it out with trial and error, so it probably not the best way to do it. Is there a more efficient solution to this?

    Thanks

Viewing 1 replies (of 1 total)
  • you can use image_class to add a class to your image
    [field image image_class=your-class-name]
    I think in general it is more a question for layouting your webpage with html/css

    • This reply was modified 5 years, 6 months ago by helmutdev.
Viewing 1 replies (of 1 total)
  • The topic ‘template for featured image and content’ is closed to new replies.