PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Short Code working in Post but not in Page?

  1. reelseo
    Member

    Ive searched the forums but dont see anything on this - Not sure why but when I put the shortcode in a post - it works, when I put it in a page - nothing renders or shows. Any ideas where I could start to troubleshoot?

    Posted 13 years ago on Thursday March 24, 2011 | Permalink
  2. Try manually entering the shortcode using the HTML editor (not visual editor) and re-save the Page. Also try it on another Page. A Page is simply another Post type so if the shortcode isn't being parsed it's going to be some sort of WordPress issue. Also are you testing using the same form id?

    Posted 13 years ago on Thursday March 24, 2011 | Permalink
  3. reelseo
    Member

    Yeah, I actually did use the HTML editor to add it in both and I've tried other pages. Yes it's the same form ID :(

    OK - this is weird - I just tried it again and I see that the form is in the HTML but there is a "display:none;" class that I cant seem to find that's making it not appear...

    Posted 13 years ago on Thursday March 24, 2011 | Permalink
  4. reelseo
    Member

    It's putting this into the actual HTML - but seems to only happen on Pages vs. Posts...

    <div class='gform_wrapper' id='gform_wrapper_1' style='display:none'>

    Posted 13 years ago on Thursday March 24, 2011 | Permalink
  5. It's probably a theme template thing. The display: none is there because that form has conditional logic in it, that is added and then jQuery is used to show the fields that should be visible when the form is loaded.

    What is probably happening is your Page template file isn't setup the same way as your Post template file and isn't enqueuing the necessary scripts.

    Can you provide us with a link to a page where this is happening so we can view source and verify?

    Posted 13 years ago on Thursday March 24, 2011 | Permalink
  6. reelseo
    Member

    sure - http://www.reelseo.com/about/ - check the HTML right before the iFramed contact form... I dont believe that I have scripts enqueuing differently but....

    BTW - I dont know why - but I didnt get an email on your second reply - I did on the first.

    Posted 13 years ago on Thursday March 24, 2011 | Permalink
  7. reelseo
    Member

    BTW - I dont t matters but I just found this in my root error_log

    -Mar-2011 10:34:22] PHP Parse error: syntax error, unexpected $end in /home/reelseo/public_html/wp-content/plugins/gravityformsuserregistration/userregistration.php on line 371

    Posted 13 years ago on Thursday March 24, 2011 | Permalink
  8. @reelseo What am I supposed to be looking at on the http://www.reelseo.com/about/ page? I see there is a form on that page that is visible and working. Is there another form that I should be looking for? See this screenshot: http://grab.by/9Fgx

    Posted 13 years ago on Thursday March 24, 2011 | Permalink
  9. reelseo
    Member

    Yes - that is my other form there so that I can still have a form while I figure this out. Please see - http://awesomescreenshot.com/08ca8gk70..

    Sill not getting alerted that this was updated when you replied but.....

    Posted 13 years ago on Monday March 28, 2011 | Permalink
  10. The issue is Javascript errors that exist on the form are preventing the Gravity Forms conditional logic javascript from executing. The Javascript errors on that pare are not Gravity Forms related. See this Firebug screenshot:

    http://www.reelseo.com/about/

    Resolve those Javascript errors and the form should start working. The problem is the form uses conditional logic, which uses javascript to show/hide the appropriate fields. Because the Javascript can't execute due to the errors, the form doesn't get displayed.

    Posted 13 years ago on Monday March 28, 2011 | Permalink
  11. reelseo
    Member

    I dont see any screenshot? :)

    Posted 13 years ago on Monday March 28, 2011 | Permalink
  12. My mistake, my screen capture program wasn't running so it didn't copy to my clipboard. Here you go: http://grab.by/9J4m

    Posted 13 years ago on Monday March 28, 2011 | Permalink
  13. reelseo
    Member

    Bummer - I wish I knew a thing about JS :) I suppose it may have something to do with minification. Hopefully I can figure that out. Thanks for the help. If there is anymore in term of direction that you can point me to - that would be, of course, much appreciated.

    Again - not sure why but just want to make sure you are aware, Im not getting any updates via email when you respond despite checking the box below - "Subscribe to this Topic Via Email" - There is no email in my spam folder either. Ok, thanks again Carl

    Posted 13 years ago on Monday March 28, 2011 | Permalink
  14. reelseo
    Member

    well, I have gotten no where and I just cant figure it out. If you can help any further Id appreciate it as Ive spent entirely too much time trying to figure the issue out :)

    I removed the minification and that didnt do anything and as far as I can tell, there is no JS on that page that isnt also within the posts so Im lost....

    Posted 13 years ago on Friday April 1, 2011 | Permalink
  15. I'm not sure what is causing the Javascript error, I just know they aren't Gravity Forms error. One of them is related to ShareBar, the other is related to flash embed code. You may need to have a WordPress developer take a look at it. It's errors related to whatever Javascript functionality you have enabled, it's not working and returning an error instead.

    Posted 13 years ago on Friday April 1, 2011 | Permalink
  16. ThePerzan
    Member

    Hi guys!

    Im kinda a rookie here, but just want to say I have the exact same problem with Conditional Logic. The form works perfectly fine until I unable CL, then the form doesnt show on page.

    It drives me crazy to be honest... Tell if you can find out about this...

    Posted 13 years ago on Monday April 4, 2011 | Permalink
  17. @ThePerzan Your issue is going to be either a Javascript error in your theme, or your theme doesn't have the wp_head() function call in place in your header.php file.

    Conditional Logic uses Javascript, if there is an unrelated Javascript error on the page, then the form won't display because the conditional logic can't execute because the Javascript error causes your browser to quit executing Javascript.

    It's hard to tell, you'd have to post a link to a page where this issue is happening so we can see it.

    Posted 13 years ago on Monday April 4, 2011 | Permalink