GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   Wordpress Plug Custom Field Input (https://gfy.com/showthread.php?t=1063565)

meka2003 04-05-2012 01:44 AM

Wordpress Plug Custom Field Input
 
Sup guys,

I can't seem to freaking find a plugin that lets me enter a custom field like "Company Name" and have it output on the front end side in my posts. Is there a plugin for this? i have installed 10 plugs and none were successful. help! tnx

Babaganoosh 04-05-2012 06:18 AM

You don't use a plugin for that. The functionality is already built into wordpress.

http://codex.wordpress.org/Custom_Fields

hausarzt 04-06-2012 12:32 PM

1. Appereance -> Editor

2. Pic the Template you want to edit

3. Add this Code, where you want to have your Cumstom-Field to appear:
<a href="<?php $values = get_post_custom_values("company_name");?>target="_ blank">CLICK HERE TO VISIT THIS SITE</a>

4. Add a new Post

5. Scroll down to "Add New Custom Field:"

6. Hit "Enter new"

7. Name: company_name - Value: http://thecompanyurl.org

8. Hit "Add custom Field"

9. Write your Post as usual.

10. You're done!



Once, after you've added a Custom Field, you'll be able to choose "company_name" from the Dropdown-Menue, when writing a new Post.

Notice: You can modify (3) to your own needs (CSS, Target ect.)

The Value "company_name" can be changed to anything. Just be sure, you use the same in your Template as in your custom Fields.


All times are GMT -7. The time now is 07:10 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc