Help... adding custom field to wordpress page

Discussion in 'HTML & Website Design' started by locals, Jun 21, 2013.

  1. #1
    I downloaded http://themes.rock-kitty.net/real-estate-avenue/

    They create a listings category in the wp-admin. but they do not give you the opportunity to select custom fields from the screen options menu, so you can add custom fields.

    Can someone tell me what files I need to edit and what lines of code I need to add in order to get the custom fields area in the bottom of the pages listed in the listings category. THANKS for your help.
     
    Solved! View solution.
    locals, Jun 21, 2013 IP
  2. iulian.pw

    iulian.pw Active Member

    Messages:
    71
    Likes Received:
    3
    Best Answers:
    2
    Trophy Points:
    65
    #2
    I don't think you need to edit any files just check in the top drowdown in add a new post page to see if the custom fields area is checked or not. If it is checked and it doesn't show maybe its a compabillity issue between the Wordpress version and the theme.
     
    iulian.pw, Jun 21, 2013 IP
  3. locals

    locals Well-Known Member

    Messages:
    1,677
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    153
    #3
    The post page and listings area are two different pages, they chose to not show the custom fields area but I need it there
     
    locals, Jun 21, 2013 IP
  4. iulian.pw

    iulian.pw Active Member

    Messages:
    71
    Likes Received:
    3
    Best Answers:
    2
    Trophy Points:
    65
    #4
    Oh I think they are using custom post types and not custom fields thats why it doesn't show up in the post area, you will have to check in the libs folder. In there you will find all the logic behind the listing posts maybe you can implement it into the post area.
     
    iulian.pw, Jun 21, 2013 IP
  5. #5
    Hi, I have seen the theme and you need to edit metabox.php in lib directory.
    Like if you want to add another text field then just an array like this and change attributes.
    array(
                'name' => 'Name Of Area',
                'desc' => 'Description of area',
                'id' => $prefix . 'unique_id',
                'type' => 'text',
                'std' => 'default value'
            )
    PHP:
     
    vikaskumarbhardwaj, Jun 21, 2013 IP
  6. locals

    locals Well-Known Member

    Messages:
    1,677
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    153
    #6
    locals, Jun 21, 2013 IP