Title: No output?
Last modified: August 30, 2016

---

# No output?

 *  Resolved [mfisher](https://wordpress.org/support/users/mfisher/)
 * (@mfisher)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/no-output-4/)
 * Hi,
    Just learning about your nice plugin. I have a newbie question. I created
   a custom post type (Church User) and some custom fields. I used the super wp-
   types plugin from Toolset.
 * url: [http://wordpress-5407-14345-33000.cloudwaysapps.com/](http://wordpress-5407-14345-33000.cloudwaysapps.com/)
 * the home page shows the content using a different plugin. I am trying to
    duplicate
   this with ur plugin. But nothing is being displayed?
 * [loop type=Church User]
    Name: [field Name] Position: [field position] Description:[
   field description] [/loop]
 * Using Wp 4.4 and ver 2.7.9 for ur plugin.
 * Thanks
    Mel
 * [https://wordpress.org/plugins/custom-content-shortcode/](https://wordpress.org/plugins/custom-content-shortcode/)

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

 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/no-output-4/#post-6435999)
 * Hello,
 * The _type_ parameter takes the name (or “slug”) of the post type, not its label.
   To find out its name, you can go to Dashboard -> Content, and look to the right
   of the label. Usually, the slug is all lowercased, with a dash “-” or underscore“_”
   in place of spaces.
 * So, something like this should work:
 *     ```
       [loop type=church_user]
       ```
   
 *  Thread Starter [mfisher](https://wordpress.org/support/users/mfisher/)
 * (@mfisher)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/no-output-4/#post-6436015)
 * Hi,
    yes that helped alot…. the only field that is not showing is the image field.
   it is stored as an image in the custom field as a url.
 * I did not know about the dashboard content menu item that is sooo helpful.
 * [loop type=Church_User]
    [field image=wpcf-picture size=thumbnail] Name: [field
   wpcf-name] Position: [field wpcf-position] Description: [field wpcf-description][/
   loop]
 * Thanks again
    Mel
 * btw: I donated a few weeks ago. Your support is amazing and we all appreciate
   it. 🙂
 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/no-output-4/#post-6436045)
 * Hi Mel,
 * About the image field, it depends on the theme/plugin that created it, and how
   the field value is stored. If you display the field like this:
 *     ```
       [field wpcf-picture]
       ```
   
 * ..and it’s a URL (not attachment ID), then please try:
 *     ```
       [field image=wpcf-picture in=url]
       ```
   
 * That should display it as an image.
 * When the field is an image URL, the _size_ parameter doesn’t do anything – but
   you can use _width_ and _height_ parameters.
 * The documentation isn’t so clear on this, so I’ll add a note about image fields.
 * —
 * Thank you for the donation, it’s certainly encouraging to keep improving the 
   plugin. 🙂
 *  Thread Starter [mfisher](https://wordpress.org/support/users/mfisher/)
 * (@mfisher)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/no-output-4/#post-6436114)
 * Hi Eliot,
    I was reading about you on your website. You have a very interesting
   background… From Japan to Bakery to this… 🙂
 * The fields are working now, so my last questions is, how do I format
    the output
   to look like the example from the other plugin.
 * [http://wordpress-5407-14345-33000.cloudwaysapps.com/](http://wordpress-5407-14345-33000.cloudwaysapps.com/)
 * Sorry for all the questions… I’m still learning how to use it. The documentation
   is fine but more examples would be nice in each section.
 * Thank you again,
    Mel
 *  Thread Starter [mfisher](https://wordpress.org/support/users/mfisher/)
 * (@mfisher)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/no-output-4/#post-6436115)
 * Hi,
 * I noticed that the height= option doesn’t seem to work?
 * [field image=wpcf-picture in=url width=177 height=179]
 * Thanks again for the super support..
 * Mel
 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/no-output-4/#post-6436120)
 * Hi Mel,
 * I saw the example site you mentioned, and it looks like the first half is displayed
   by a plugin/theme, and the second half is using shortcodes. So, as you see, this
   plugin only outputs “raw” field values, and the styling is up to the HTML and
   CSS.
 * —
 * About the image: it looks like the width/height parameters only specify the maximum,
   and the final result depends on the proportions of the original image. To solve
   this, it would be best to use a field that returns the image as an attachment
   ID – that way, the plugin can retrieve cropped thumbnails. When it’s stored as
   URL, it can only display in the original size and proportion – and resized by
   HTML attributes (width/height) which don’t handle cropping.
 * For example, using [Advanced Custom Fields](https://wordpress.org/plugins/advanced-custom-fields/),
   you can create an image field that returns an attachment ID. Then, this plugin
   can get the cropped thumbnail, using _size=thumbnail_.
 * —
 * To make the text display to the right, you can “float” the image. If you inspect
   the element using Chrome or Firefox, you can see that the class `alignleft` is
   applied to the thumbnails. So, for the shortcode-generated version, you can set
   it also:
 *     ```
       [field image=wpcf-picture in=url width=180 image_class=alignleft]
       ```
   
 * The person’s name is displayed using a header tag `<h1>` in the original version.
   So, you can do:
 *     ```
       <h1>[field wpcf-name]</h1>
       ```
   
 * For the description, the original version puts a paragraph tag `<p>` – and I 
   think needs a better line height. So you can do:
 *     ```
       <p>[field description]</p>
       ```
   
 * Then in your _style.css_:
 *     ```
       p {
         line-height: 1.2em;
       }
       ```
   
 * I also see that the whole thing is displayed in bold font. The original version
   uses a bunch of `<strong>` elements, but it would simpler to create a class for
   it.
 *     ```
       [loop type=Church_User]
       <div class="each-user">
         ...
       </div>
       [/loop]
       ```
   
 * Then in your _style.css_:
 *     ```
       .each-user {
         font-weight: bold;
       }
       ```
   
 *  Thread Starter [mfisher](https://wordpress.org/support/users/mfisher/)
 * (@mfisher)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/no-output-4/#post-6436137)
 * Hi Eliot,
 * Thank you for the detailed response, I am learning alot from your
    comments.
 * This post can be closed….

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

The topic ‘No output?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

## Tags

 * [no output](https://wordpress.org/support/topic-tag/no-output/)

 * 7 replies
 * 2 participants
 * Last reply from: [mfisher](https://wordpress.org/support/users/mfisher/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/no-output-4/#post-6436137)
 * Status: resolved