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.

Need help with how to get a form post to a page

  1. mavellino
    Member

    I created a story form and can not get the post it creates to show up in a page. Please explain how to do this. In my last post, the admin suggested I use a Post Category plugin for a widget. I would like a widget to showcase the entries on my homepage and store the full stories on a "Stories" page. The plugin broke my site because I am using WP 3.2
    There is no info in any support on this site on steps of how to do this, however, when I went to buy the program it says how you can post stories very easily through forms. It is misleading to sell something that it does and then have it require a customization you can't support or explain. If I can't get this to work I will be asking for a refund based on false advertising.
    PLEASE help me get this to work!

    Posted 13 years ago on Tuesday July 26, 2011 | Permalink
  2. mavellino, Gravity Forms can certainly do what you're looking for. I am unclear how you want to accomplish it exactly though.

    One clarification: WordPress Pages are specific things, not Posts. In your previous question, you asked about posting to a Page specifically. However here it does not sound like you want that. Sounds like you want a form that will create a Post, in the category of Stories, and then you want one Stories page that showcases all the stories that were submitted?

    Additionally, you want a widget on the home page that will showcase some number of recent entries in the Stories category?

    Is that all accurate? If so, I will be happy to show you how to do all that. It requires no customization or code at all, just some configuration of your WordPress site.

    Posted 13 years ago on Tuesday July 26, 2011 | Permalink
  3. mavellino, I created a form for story submissions, then a Stories category, and installed and configured a widget to display the last 5 posts in that category on the home page. Everything you want, as I understand it, is possible.

    Here's the form:
    http://gravity.chrishajer.com/story-submission/

    This page will list all posts in the Stories category (up to my max of 10 per page; then WordPress will create additional pages and paginate the results): http://gravity.chrishajer.com/category/stories/

    Here are some individual posts (which were created by submitting that form):
    http://gravity.chrishajer.com/2011/07/26/twelve-brothers/
    http://gravity.chrishajer.com/2011/07/26/the-ear-of-corn/
    http://gravity.chrishajer.com/2011/07/26/davy-crockett-and-the-coonskin-cap/
    http://gravity.chrishajer.com/2011/07/26/the-nail/
    http://gravity.chrishajer.com/2011/07/26/little-red-riding-hood-meta/
    http://gravity.chrishajer.com/2011/07/26/three-little-pigs/

    On the home page of the site you can see the widget (top) which is pulling the last 5 posts from the Stories category. This is the widget I installed (I'm using WordPress 3.2.1):

    http://wordpress.org/extend/plugins/category-posts/
    version 3.2 of the plugin says compatible up to 3.1.4 but I voted "works for me"

    Please let me know if that's along the lines of what you are looking for and I will answer specific questions about how to set it all up. If you're looking for something different, please clarify. Thanks.

    Posted 13 years ago on Tuesday July 26, 2011 | Permalink
  4. mavellino
    Member

    Hi Chris,
    Ok, some of it is working. I am trying to get the posts to show up on the homepage, but the post image does not come through. It is in the plugin backend entries, but it is not in the WP backend posts and frontend feed on the home page. Any way to fix this? How does the post image get uploaded with the post???

    Posted 13 years ago on Thursday July 28, 2011 | Permalink
  5. You need to include the post image in your content template for the post body. Can you post the content template you're using or a link to your form so we can see what's going on?

    Posted 13 years ago on Thursday July 28, 2011 | Permalink
  6. mavellino
    Member

    I found out that my theme does not support post images. So now I am just using posts only. How do I get the posts to show up on a page? I can't find the shortcode to put into the wp page so that all user posts submitted will populate to the page I choose. Please help.
    Thanks!

    Posted 13 years ago on Thursday July 28, 2011 | Permalink
  7. I used the built in WordPress category archive the display the actual posts. Do you want to display a list of posts in this page, or the actual full content of each post, all the posts from this category in one page?

    Posted 13 years ago on Thursday July 28, 2011 | Permalink
  8. mavellino
    Member

    I want to display all the posts in just this one category to a specific page.
    Thanks.

    Posted 13 years ago on Friday July 29, 2011 | Permalink
  9. Mavellino, this is getting into straight WordPress customization now, not related at all to Gravity Forms. You've got Gravity Forms creating your posts, which is great.

    Now, you're trying to create a page that display every post from a specific category on your site. This will most easily be done by creating a page template that loops through all the posts in one category.

    I have not seen your site yet so I hesitate to post an actual page template for you since it would not match your existing code. Here's an example at wordpress.org:
    http://codex.wordpress.org/Pages#A_Page_of_Posts

    That approach would need to be modified a little bit, as that code is using a custom field, and you don't need or have that, you just want everything from one category in a page.

    Another example suggesting a page template:
    http://www.hashbangcode.com/blog/create-page-posts-wordpress-417.html

    Another way of doing this using a page template:
    http://wordpress.stackexchange.com/questions/7739/displaying-the-blog-entries-in-a-page-using-get-posts-to-retrieve-the-posts

    In short, it looks like it will take a little bit of customization on your part to create a page template that will loop through all the posts in your story category, then display them in that page.

    Aside:
    I thought there might be (should be?) a plugin that adds a shortcode you can add to get posts into a page, but the ones I found all output a list of titles, not the actual posts. Ones I found:

    http://wordpress.org/extend/plugins/list-category-posts/
    http://wordpress.org/extend/plugins/show-aposts-shortcode/

    There were a couple others as well but all output lists rather than all the posts. I think a page template is the way to go.

    Posted 13 years ago on Friday July 29, 2011 | Permalink
  10. Actually, as soon as I posted that, I found a piece of code online that almost does what I want. Here it is: http://seedprod.com/wordpress-the-loop-shortcode/

    That adds a shortcode called "loop". I create a page called "Visitor Submissions" and used the shortcode as my Page content:

    [loop category="stories" pagination="false"]

    That's the only thing I entered in my Page. I have pagination set to false there so all the posts in the "stories" category will be on one page.

    However, this shortcode too defaults to displaying only a list of post titles, linked. That happens on this line:

    <li><a href="" rel="bookmark"></li>

    Since I am using the default Twenty Eleven theme (a child theme of it anyway), I changed that one line to this:

    <?php get_template_part( 'content', get_post_format() ); ?>

    That one line change created the output you see here:
    http://gravity.chrishajer.com/visitor-submissions/

    There are a lot of things wrong with the format of that page, but I was not going to spend time fixing them. What you would do is copy the loop code from your archive.php or index.php template and replace that one line with your code. That will essentially loop through all the posts in your one category, and display them just as they're displayed on your archive or index page.

    There might be other things to be changed (body class due to this being a Page vs a Post for example) but it is certainly possible to do what you want by using this code in your functions.php or creating a mini-plugin out of it. It will just need to be tweaked for your use to match your existing template.

    Posted 13 years ago on Friday July 29, 2011 | Permalink
  11. In my continuing search to find ways to display posts from a category in a page, I found this plugin: http://wordpress.org/extend/plugins/category-shortcode-w-generator/

    I used this shortcode:

    [Category number='-1' id='5' method='full' order='asc' orderby='title']

    number: how many posts to display (-1 == all)
    id: my category ID for "stories"
    method: full, to show the full post
    orderby: title
    order: return ordered by title in ascending order

    Here's the page it generated:
    http://gravity.chrishajer.com/all-stories/

    Maybe that will be an option for you.

    (This plugin says it's compatible up to 3.0.5, but I am using it without a problem on 3.2.1.)

    Posted 13 years ago on Friday July 29, 2011 | Permalink
  12. garethc
    Member

    I've tried plenty and this is by far the best option and it doesn't use shortcode.

    http://wordpress.org/extend/plugins/post-page-association-plugin/

    It just loads all the options at the bottom of a new pages for you to select. Its brilliant and works perfectly.

    Posted 13 years ago on Monday August 1, 2011 | Permalink
  13. mavellino
    Member

    Hi Chris,
    Thanks for all of your help. I have tried it all and have uploaded the Post Page Association plugin and it all works great. I have only 2 issues left, one is that each individual post that is created by the user form does not have the ability to let people make comments on the individual post. And the second is that I don't want the category to appear. How can I remove category from under the title?
    Here is the link to my page where the Post Page plugin is populating the posts.
    http://changingurworld.com/wp2/new-stories/
    If you click on an individual post they each end up having their own post page which after the fact I could add comments as the admin panel, but I want the form to allow users to submit the post and have it populate to the story page and then when they click through an individual post that post can have others add comments on that post. Any ideas? Is this all being generated by the form or is this part of WP?
    Thanks again.

    Posted 13 years ago on Wednesday August 3, 2011 | Permalink
  14. mavellino
    Member

    Thanks @gareth c. The post page association works great.

    Posted 13 years ago on Wednesday August 3, 2011 | Permalink
  15. The posts created by Gravity Forms will honor the settings you have for Discussion in your WordPress admin. I had comments turned off on my site, just turned them back on, and submitted a story here: http://gravity.chrishajer.com/story-submission/

    There was an option to leave a reply, which I did, and it's on the site now.

    Do you allow comments on your posts in the WordPress admin?
    http://changingurworld.com/wp2/wp-admin/options-discussion.php

    If you want to enable comments only on these submissions, then you need to do more work. The setting in the WordPress admin is global (applies to all categories.)

    For the second part, removing the category, you're probably going to have to edit your template files. That is just WordPress customization to make the pages look the way you want, unrelated to Gravity Forms. It looks like you're using a non-free template. You might ask their support for assistance in removing the category display from your single post template.

    http://premium.wpmudev.org/forums/forum/theme-support

    Posted 13 years ago on Wednesday August 3, 2011 | Permalink
  16. mavellino
    Member

    Thanks, Chris. I see the comment you added, but it does not give and option under the post for anyone to comment?? Is it possible for comments form other users to be made? Not sure how you acutally commented on the article from the frontend. Please explain further. I will contact theme developer about the cateogory.

    Posted 13 years ago on Wednesday August 3, 2011 | Permalink
  17. Gravity Forms doesn't enable or disable comments on the posts that are created. It uses your default WordPress settings. If comments are enabled, then comments should be enabled on posts created by Gravity Forms.

    Posted 13 years ago on Wednesday August 3, 2011 | Permalink
  18. @mavellino, check this screenshot:

    http://minus.com/mdCO7ct

    The way I have configured comments on that site, you must be logged in to reply. Since you're not logged in, do you see something like that when viewing this page on my site:

    http://gravity.chrishajer.com/2011/08/03/the-tortoise-and-the-hare/

    As Carl mentioned, this is all WordPress functionality (unrelated to Gravity Forms). You configure how you want to accept comments in your WordPress admin, then you have to rely on your theme to have the code in the proper places to show the comments form (and display, or in your case HIDE, the category.)

    Posted 13 years ago on Wednesday August 3, 2011 | Permalink