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 6986383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:48:06+00:00 2026-05-27T18:48:06+00:00

I’m currently trying to create a site for TV shows and due to certain

  • 0

I’m currently trying to create a site for TV shows and due to certain wordpress limitations this is becoming a challenge.

However I bypass that with the use of implementing custom meta fields in the functions.php file, now my problem is that I need it to actively create new fields when I submit information in the current field. For example custom metabox names are
(Episode Name="This is It") (Episode Number="1") (Season Number="5")

Instead of having to create all the boxes from the beginning I would like the use Javascript (jQuery) or any solution to automatically create a new set of these 3 boxes
(Episode Name="") (Episode Number="") (Season Number="")
so I can just enter the new information as they come. Thank you in advance for your help!

Note: I have invested too much time into wordpress to just switch to another cms, so that is not an option at this point in time.

  • 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-05-27T18:48:07+00:00Added an answer on May 27, 2026 at 6:48 pm

    from what I understand of your question, you are looking for a simple solution to automate the input process. I have a general idea of what it is you nee to achieve as I have had to do something similar on a brochure type of website.

    I have tried answering your question using Jquery, but I find it to increase the amount of text input required when creating your post, there is unfortunately no completely automated method of doing it, but hopefully below would provide you with a solution.

    first I found the following plugin: Types – Complete Solution for Custom Fields and Types here: http://wordpress.org/extend/plugins/types/

    This allows you to create custom meta feilds when creating a new post/page. The custom feilds are brought added with a perfix of “wpcf-” and then the name of the field, e.g. “Episode Name” becomes “wpcf-episode-name” in the database.

    The following is an edit of wordpress’s get_meta function:

    function get_specifications(){
        if ( $keys = get_post_custom_keys() ) {
        echo '<div class="entry_specifications">';
        foreach ( (array) $keys as $key ) {
            $keyt = trim($key);
                if ( '_' == $keyt[0] )
                continue;
                $values = array_map('trim', get_post_custom_values($key));
                $value = implode($values,', ');
    
                //remove "wpcf-"
                $key = str_replace('wpcf-','',$key);
    
                //convert "-" to a space " "
                $key = str_replace('-',' ',$key);
    
                //check if it has a value, continue if it does, skip if it doesn't:
                if ($value <> ''){
                    echo apply_filters('the_meta_key', "
                    <div class='meta_wrapper'>
                        <div class='meta_title'>$key</div>
                        <div class='meta_value'>$value</div>
                    </div>\n", $key, $value);
                };
    
            }
    
       }
       // echo '</div>'; comment out and remove the line below if you are not using floats in your css
       echo '</div><div class="clear"></div>';
    }
    

    In my page.php (or your template-page.php) I have added the following code when/where I want the meta to be produced:

    <?php
    
    //check to see if there is meta data, as you only want the meta data on TV Program pages
    $met_check = get_post_meta($post->ID, 'wpcf-features', true);
    
    if ($met_check <> ''){ 
    //if it has a value, spit out "About EpisodeName" ?>  
        <h2 class="post-title clear">About <?php echo $title ?></h2>
    
        <?php //perform the function from functions.php and return results:
        echo get_specifications();
    }
    ?>
    

    I’ve styled the result with the following CSS:

    .meta_entry {
        clear:both;
    }
    .meta_title {
        float:left;
        text-transform:capitalize;
        width:200px;
    }
    .meta_value {
        float:left;
        width:480px;
    }
    

    Hope this helps mate!

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

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
this is what i have right now Drawing an RSS feed into the php,
I want use html5's new tag to play a wav file (currently only supported

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.