Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8478355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:43:22+00:00 2026-06-10T18:43:22+00:00

I am working on a WordPress project where my client has guest authors allowed

  • 0

I am working on a WordPress project where my client has guest authors allowed to submit posts but are having trouble figuring out the WordPress Admin section and, in particular, how to embed YouTube videos in their posts. I added the wp-user-frontend plug-in which allows posts from WordPress’ front end. I added a custom field to the form and I am trying to intercept the submission of the form to concatenate the two values before the form submits.

I can alert the value of the textbox and the value of the textarea but when I try the concatenation, nothing happens.

Any help is greatly appreciated on the jQuery code below:

<script type="text/javascript">
    (function($){
        $('#wpuf_new_post_form').submit( function(){
            var value = $('#new-post-desc_ifr').contents().find('#tinymce').html();
            var tube = $('#cf_YouTube').val();
            var new_val = '';

            if( $.trim(tube).length) {
                new_val += value;
                new_val += '<br><iframe width="560" height="315" src="http://www.youtube.com/embed/';
                new_val += tube;
                new_val += '" frameborder="0" allowfullscreen></iframe>';
                $('#new-post-desc').val( new_val );
            } // end if

            return true;
        });
    })(jQuery); // END self-invoking anonymous function
    /*************************************************/
</script>

I edited the code to eliminate my STUPID error and now the form posts but it still posts the contents of the textarea and ignores the video code. Any ideas on what else is wrong beside the dumb php error???

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:43:24+00:00Added an answer on June 10, 2026 at 6:43 pm

    it’s += to concentenate in Javascript, not .=, that’s in PHP!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having an issue with a WordPress theme project I'm working on (the theme
having just completed first wordpress theme uploaded and working fine in FF, testing has
I'm working on my first WordPress project. It won't be a blog but a
I'm working on a wordpress project and having a frustrating issue with ajax. I'm
I am working on a project and having trouble to increase or decrease font
Has anyone ever worked on a WordPress project with multiple developers in different locations?
I'm working on a new project, it is a wordpress theme with advanced functionality.
I'm working in wordpress, trying to figure out how to change the css color
I am working on a project for a client which needs an automatic login
Am working in a wordpress project. It uses many fash images. When right clicking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.