WordPress.org

Ready to get started?Download WordPress

Forums

What is the best way to add customized fields on posts? (5 posts)

  1. endlessstudio
    Member
    Posted 1 year ago #

    I need to add a couple of extra fields on every post such as 'Price' and 'Web URL'
    What is the best way?
    Plug-ins? or hardcode? If it's hardcoded, can you post a link where I can learn to do that?

    Thanks

  2. playing2012
    Member
    Posted 1 year ago #

    If you tell us which link you want then a specific example can be given. how ever this link gives you both the price and URL:

    <a href="http://www.amazon.com/HTML-XHTML-CSS-Dummies-Tittel/dp/0470916591/ref=sr_1_1?s=books&ie=UTF8&qid=1348983156&sr=1-1&keywords=html+for+dummies+2012">This product costs less than $17.
    </a>

    Hope you get the idea.

  3. endlessstudio
    Member
    Posted 1 year ago #

    http://s10.postimage.org/60linz8i1/image.jpg
    See above link.

    So basically, I want to add a few more fields on the post page and able to display that value somewhere on the site.
    I was wondering what is the best way?

    Thanks for looking into this

  4. Good Guy
    Member
    Posted 1 year ago #

    I would do something like this:

    <table style="width: inherit">
    	<tr>
    		<td><strong>Product List</strong></td>
    		<td><strong>Price</strong></td>
    	</tr>
    	<tr>
    		<td>Item 01</td>
    		<td>0.00</td>
    	</tr>
    	<tr>
    		<td>Item 02</td>
    		<td>0.00</td>
    	</tr>
    	<tr>
    		<td>Item 03</td>
    		<td>0.00</td>
    	</tr>
    	<tr>
    		<td>Item 04</td>
    		<td>0.00</td>
    	</tr>
    </table>

    Hope this gives you an idea.

  5. endlessstudio
    Member
    Posted 1 year ago #

    Wait.
    I am not just talking about the HTML part.
    How do I add columns to wp-post database table so that I can input data?
    Plug-ins? or hardcode it?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.