• Resolved Moses001

    (@moses001)


    I am new to Custom Content Shortcode.

    I need an example of how to display wp images with image, image title and caption.

    Your plugin sounds terrific, but I don’t understand how I use the shortcode.

    I was using Display Posts but it does not show image caption. I know how to use short code with Display posts plugin.
    ‘[display-posts post_type=”product” taxonomy=”product_tag” tax_term=”cast-iron-housing” image_size=”medium” orderby=”title” order=”DESC” wrapper=”ol”]
    [attached orderby=title]
    [field title]
    [field image] or [content]
    [field caption]
    [/attached]’
    How would I use your plugin with taxonomy created in woocommerce>? If I want the results to show up in WP Page, how do I use your plugin?

    Thanks for some direction.

    https://wordpress.org/plugins/custom-content-shortcode/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Moses,

    Did you read the documentation under Settings > Custom Content?

    Did you try something like this?

    [loop type=product taxonomy=product_tag term=cast-iron-housing orderby=title order=DESC list=true]
    [field title]
    [field image size=medium]
    [field image-title]
    [field image-caption]
    [/loop]
    Thread Starter Moses001

    (@moses001)

    Hi Peter,
    Where do I put the above code? In a wordpress post? Or in a template file. If a template file which one.

    I looked at the documentation. I saw code, but had no idea where to use it put it.

    Thanks for any help

    Did you try anything for yourself?

    I’m not the one to answer the question where you have to put the code. Only you knows where you want to appear the content. If it’s on a specific page, then you have to put the code there. You also can put it in a widget.

    If you want to put it in a template file, you first have to know how the templates work. For above example you can also make a archive template file for that term. Then you don’t need the loop code, just the fields.

    Building websites means you have to try and test a lot to see how it works. If you do it on a test website, nobody can see it if it’s going wrong.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to Use Custom Content Shortcode’ is closed to new replies.