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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:39:07+00:00 2026-06-01T17:39:07+00:00

i am trying to add an image field to the wp_term table in the

  • 0

i am trying to add an image field to the wp_term table in the database, I’ll call it icon.

I want that filed to contain a URL to an image that will be the thumb for the category.
I have already added the field to the DB and I have also inserted it into the code in the admin panel :

<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
    <tr class="form-field">
        <th scope="row" valign="top"><label for="icon"><?php _ex(' Icon', 'Taxonomy Icon'); ?></label></th>
        <td><input name="icon" id="icon" type="text" value="<?php if ( isset( $tag->icon ) ) echo esc_attr($tag->icon); ?>" size="40" />
        <p class="description"><?php _e('The &#8220;icon&#8221; is the URL to the category icon. if it is an uploaded image it will be http://'.$_SERVER['SERVER_NAME'].'/wp-content/uploads/{your_file.name}.'); ?></p></td>
    </tr>
<?php endif; // is_taxonomy_hierarchical() ?>

the code shows the content from the database if it is preset but doesnt update it.

what/where do i need to add so that it will also update the DB icon field?

thank you.

  • 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-01T17:39:08+00:00Added an answer on June 1, 2026 at 5:39 pm

    i found a nice plugin that lets you add all kinds of fields to a post called Category Meta plugin and its vary easy to use.

    good luck 🙂

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

Sidebar

Related Questions

I'm trying to add an image to a generated html word document that is
I'm trying to add an image to a report. The image src url is
Hi i'm trying to add an image to an ImageView from a URL i
So I am trying to add an icon to an image, once someone has
I am trying to take favicons and add them to a dynamic image that
I am trying to get URL of Image(blob field of GAE): class Product(db.Model): name
Hi I'm trying to add my image name to my database, I have a
I am trying to add and image and then put some text(title) on the
I am trying to add n image to a panel using Netbeans. I dragged
I'm trying to add an image in a stack panel at runtime. My image

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.