• When I put a shortcode for a label post in page content, the label mounts on the page fine.

    But when I try to view it by clicking on the link in the Labels admin, I get a blank page. I thought it was a problem with my theme but it behaves the same in the WP Twenty-Twelve default theme. Also tried resetting Permalinks but that doesn’t solve the problem. What’s up with this? Any input is appreciated.

    https://www.ads-software.com/extend/plugins/easy-nutrition-facts-label/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Hal Gatewood

    (@halgatewood)

    Hmm, that is strange. Do you know how to turn on WP_DEBUG, if so do you get any messages?

    Thread Starter tfagency

    (@tfagency)

    Hal: Sorry for the delay, I wasn’t notified about your follow-up post for some reason.

    Implemented the debug mode, but no messages (which is good, really).

    The way I get this plugin to work is to create a separate page for the label add a shortcode in the content field, then call it up in a Fancybox overlay. Kind of a wonky method.

    But the original problem still exists — I can’t view the content at all when clicking on “view post”. It would seem that the custom post type needs a special template (like “single-nutritional.php” or something) for viewing the single post. Your thoughts?

    Plugin Author Hal Gatewood

    (@halgatewood)

    Yes, the way I setup the Custom Post type to work is that it doesn’t have an visible page. It has to be included with the shortcode.

    If you are comfortable with some code you can turn it on in the files.

    In the file wp-content/plugins/easy-nutrition-facts-label/nutrition-facts-label.php

    Do a search for ‘publicly_queryable’ and change the value to the right of it from false to true.

    After changing that you may have to resave your permalinks. Which just means going under Settings -> Permalinks and clicking the save button again.

    Hope this helps.

    Thread Starter tfagency

    (@tfagency)

    Ah so by design it’s not built to display your post with a template. That’s actually OK, glad I know it now.

    I’ll probably just stick with the way I’m displaying the info for now but thanks for the info about altering the plugin files. Could come in handy down the road.

    Great plugin, my clients want it on all their sites now ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can't view content’ is closed to new replies.