Support » Plugin: Display Custom Fields - wpView » Conditionally Show Fields?

  • This is a superb plugin. I love it. I actually have two questions here.

    1. I’d like to only show a custom field if there’s content in that field. If it’s empty, I don’t want it to display anything.

    Here’s my reference point for #1: https://staging.sideprojectplan.com/lesson/creating-your-side-project/. There’s no Parent Course for this lesson, so it seems that field should just no show at all. Oddly, I have other custom fields on that entry that have no content and they don’t show. Only this custom field shows.

    2. With either the Page Link or Post Object field types, is there way to set things up where only the page name, hyperlinked, is displayed?

    Here’s my reference point for #2: https://staging.sideprojectplan.com/lesson/choosing-your-angle/. The “Parent Course” field content I’d rather have showing with the content itself, no thumbnail. I selected “Table” in your plugin settings, but when I choose “Without Thumbnail” in your settings, it fouls the view up entirely.

    I hope these make sense. Thanks for any help you can provide.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author gvplugins

    (@gvplugins)

    Hi bhull

    1. I’d like to only show a custom field if there’s content in that field. If it’s empty, I don’t want it to display anything.

    If a field doesn’t have value wpView should not show that. Could you please specify which Custom Field Plugin you use with wpView?

    2. With either the Page Link or Post Object field types, is there way to set things up where only the page name, hyperlinked, is displayed?

    This option is already exists, please use this option: http://screencast.com/t/vTnOyU6OJ7

    Thanks for the reply.

    On #1…I use Advanced Custom Fields.

    On #2…When I select that option on #2, it simply makes that selected field, whether it’s Page Link or Post Object, disappear entirely from my display page.

    Hey @gvplugins, any further suggestions on why those 2 issues exist? Here’s a screenshot for you: http://www.screencast.com/t/b0aDULLFmp.

    Plugin Contributor gVectors Team

    (@gvectors-team)

    Hi bhull,
    Could you please contact us via support[at]gvectors.com email address? We’ll need more information to be able help you.

    Plugin Author gvplugins

    (@gvplugins)

    Hi bhull,
    Please try to update these isssues should be fixed in v1.1.1.

    We’re so close. The issue of how to display when there’s no parent course (custom field) is taken care of. Thanks!

    But the alignment issue when there IS a parent course is still off:

    http://www.screencast.com/t/N9jX1O7Qo

    Plugin Contributor gVectors Team

    (@gvectors-team)

    Put this CSS code in your active Theme Style.css file, then save, delete cache and do Ctrl+F5 on front-end to load new CSS code:

    .wpview_relation_view > div {padding: 5px 10px!important;}
    div[class$="_view"] {display: block!important;width: 100%!important;}
    .wpview_relation_without_thumbnail a{display: inline-block!important;width: 50%!important;} 

    Darn, unfortunately I did all of those things, to no avail.

    – CSS code in my custom css section.
    – Cache deleted.
    – Ctrl-F5.

    Plugin Contributor gVectors Team

    (@gvectors-team)

    Add this too:

    .entry-content .wpview_relation_view{display: block!important;width: 100%!important;}

    Yeah, still looks the same for me after updating CSS, flushing the cache, and Ctrl-F5.

    • This reply was modified 3 years, 10 months ago by . Reason: make my reply more clear

    Hey guys, any final thoughts on this? I may need to explore other options.

    Thanks!

    Plugin Contributor gVectors Team

    (@gvectors-team)

    Please remove the CSS above and make sure you’ve set “table” view for Page Link and Post Object field in wpView Settings. This is not the table view, others are table but not this one, you’ve missed this.

    Yeah I tried that previously. It moves the field value to the proper spot, but the font is small like the field label, and a thumbnail placeholder is added that’s unnecessary. Take a look at the screenshot:

    http://www.screencast.com/t/tmb9gckq

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Conditionally Show Fields?’ is closed to new replies.