User Submitted Posts
[resolved] External URL (4 posts)

  1. behedwin
    Posted 2 years ago #

    I want visitors to submit a link (external URL).
    I have setup this plugin like this
    1. http://prntscr.com/2te01b and this means that the user submission form looks like this http://prntscr.com/2te0b9
    Only containing title and URL.

    But when i test it, i only get an empty post. Where did my URL go?
    How can i make all user submission to be created into a link to whatever link they wanted to share?


  2. Jeff Starr
    Plugin Author

    Posted 2 years ago #

    As explained in the readme and plugin documentation, URLs and other submitted data are attached to posts as custom fields. That way you can use them however is required in your theme.

  3. behedwin
    Posted 2 years ago #

    Ok so for someone like me with no programing background. How would i go about to use these custom fields to be displayed.

    My aim is to let anyone submit a title + link (url) and have it displayed in a list. I thought your plugin would be a good fit, but maybe it is not if i dont know how to use those custom fields and have any background in programing.

  4. Jeff Starr
    Plugin Author

    Posted 2 years ago #

    Basically to display custom fields you just add a snippet of code to your theme where you want the custom fields to display. The WordPress loop is a good place to try something like the following:

    <?php $key_1_value = get_post_meta( get_the_ID(), 'key_1', true );
    // check if the custom field has a value
    if ( ! empty( $key_1_value ) ) {
    	echo $key_1_value;
    } ?>

    Just change the name of the key "key_1" to that of the custom field you would like to display. More info here:


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Submitted Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.