• Resolved Uprootednut

    (@uprootednut)


    For example we want to have a field for town, the field will be the town name the job is in. I can add the field to custom post type etc no problem. I am slightly confused how I make the XML match up with my new field.

    What file is it I can see an example of the WordPress taxonomies being linked with the data from the XML?

    SO the field would be town, when we update the XML to include it we would add somthing like <town>London</town> and we have a field in the custom post type for town which is essentially a new category. I am just unsure what I am missing in between the two stage.

    I hope that make sense.

    https://ww.wp.xz.cn/plugins/wpbroadbean/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mark Wilkinson

    (@wpmarkuk)

    This is a little beyond the free support I can offer here as it is altering the plugins behaviour. However Version 2, hopefully out by the end of the month will make this sort of thing much easier.

    Take a look at this blog post for more information: http://markwilkinson.me/2014/12/wp-broadbean-v2-0-coming-soon/

    Thread Starter Uprootednut

    (@uprootednut)

    So it isn’t as simple as just adding the field to metaboxes.php, damn.

    V2 looks exactly what I need. I look forward to its release.

    Plugin Author Mark Wilkinson

    (@wpmarkuk)

    You can do that of course and it will work on the WordPress side of things – in fact it will be even easier with the new version. However the plugin does not control what gets sent to your WordPress site from Broadbean (it can’t) and therefore if you want to add new fields you would need to contact Broadbean to get them to send that part of the XML.

    Thread Starter Uprootednut

    (@uprootednut)

    I have been talking with broadbean, they wanted me to send over a XML node so I sent them this –

    <job_location_tags>Reading</job_location_tags>

    They said that was fine and I needed to set up a free text field. So I figured if I copied the salary meta box –

    'salary' => array(
    		'name' => 'Salary',
    		'id'   => $wpbb_prefix . 'job_salary',
    		'type' => 'text',
    		'cols' => 4
    	),

    and replaced the id a renamed the field it might work, heres what I added:

    ` ‘location_tags’ => array(
    ‘name’ => ‘job_location_tags’,
    ‘id’ => $wpbb_prefix . ‘job_location_tags’,
    ‘type’ => ‘text’,
    ‘cols’ => 4
    ),

    I added this into the same array as salary, contact email and linkedin in metabox.php

    I hoped it might work, Broadbean uploaded a test job this morning to test it but nothing came through to the field I set up. Was that a long the right lines?

    I don’t mind waiting till V2 its more curiosity now than anything.

    Thread Starter Uprootednut

    (@uprootednut)

    Never mind got it working!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Adding another field to the plugin’ is closed to new replies.