Mark Wilkinson
Forum Replies Created
-
Forum: Plugins
In reply to: Passing HTML, Inside XML as Post Content with wp_insert_postThanks for the suggestion John – much appreciated. I have now changed to use in the way you have suggested. I no longer get errors, however it adds no post content. Any further ideas?
Forum: Plugins
In reply to: [WP Broadbean] Set upCreate a normal WordPress page perhaps called Apply. Then in the WP Broadbean settings screen, choose that page from the drop down and save.
Copy the short code next to the drop in the settings screen and add this to the Apply page. This will generate an application form.
On your job templates (probably single-wpbb_job.php) you can use the following function to generate an apply URL that will direct people to the form with the appropriate information already complete.
wpbb_get_apply_url( $post_id );
Forum: Plugins
In reply to: [WP Broadbean] Set upThe job data is stored as both post meta and also as custom taxonomies. The job category, job location and job type are stored as custom taxonomies. The custom taxonomy names are as follows:
- wpbb_job_category
- wpbb_job_location
- wpbb_job_type
These can be outputted on the front end using the following:
https://codex.www.ads-software.com/Function_Reference/get_the_term_list
In terms of getting the other data this is stored as post meta against the job post in question. All the custom field keys are prefixed with
_wpbb_
. You will find the part after that by looking at thefields
array here:https://github.com/wpmark/wpbroadbean/blob/master/functions/metaboxes.php
Look for the
id
part of each array in thefields
array to get the name. For example the key for job reference would therefore be:_wpbb_job_reference
To output this (and others on the front end) I would try something like this:
<?php /* get the job reference */ $wpmark_job_ref = get_post_meta( get_the_ID(), '_wpbb_job_reference', true ); /* check we have a job reference added */ if( ! empty( $wpmark_job_ref ) ) { /* output the job reference */ echo '<p class="job_meta job_ref">' . esc_html( $wpmark_job_ref ) . '</p>'; } ?>
Hope that helps!
Forum: Plugins
In reply to: [WP Broadbean] Set upYes that is correct you will need to create a template for your jobs archive and jobs single post pages. You should name these:
archive-wpbb_job.php
single-wpbb_job.php
Later version of the plugin will have template integration. Until then it is more a manual job I am afraid.
Forum: Plugins
In reply to: [WP Broadbean] Set upTry updating permalinks in the WordPress admin.
Forum: Plugins
In reply to: [WP Broadbean] Set upYeh!! Pleased you have it working ??
Forum: Plugins
In reply to: [WP Broadbean] Set upWhen I vista the page you have linked above I get the correct
wp_die()
error message indicating the username and password do not match.Therefore can I confirm that the XML being sent includes the username and password that you have set in the WP Broadbean settings page please?
Forum: Plugins
In reply to: [WP Broadbean] Set upUse POST for the request method. The plugin expects an XML feed to be posted to the processing page.
The job ID or reference can be anything you like, usually alpha numeric.
Forum: Plugins
In reply to: [WP Broadbean] Set upTracking address should go to the
<application_email>
field. Email address will be in the From field.Forum: Plugins
In reply to: [WP Broadbean] Set upIf you want users to apply on your website then:
Will you be supporting an Applyonline URL?
Should be set to no. Aplitrak is supported and the XML field to send this to should be
application_email
field.The following would be an example of the expected XML
<?xml version="1.0" encoding="UTF-8"?> <job> <command>add</command> <username>XXXXXXXXX</username> <password>XXXXXXXXXX</password> <contact_name>Bob Smith</contact_name> <contact_email>[email protected]</contact_email> <application_email>[email protected]</application_email> <job_reference>ZZZZZZ</job_reference> <job_title>Another Test Engineer</job_title> <job_type>Contract</job_type> <job_duration>6 Months</job_duration> <job_startdate>ASAP</job_startdate> <job_description>This is the detailed description</job_description> <job_short_description>This is the short description</job_short_description> <job_location>London</job_location> <job_category>Marketing</job_category> <salary_currency>gbp</salary_currency> <salary>XXXXXX</salary> <salary_per>annum</salary_per> <featured_job>1</featured_job> <apply_with_linkedin>1</apply_with_linkedin> </job>
Forum: Plugins
In reply to: [WP Broadbean] Set upThis part of the Broadbean form is to tell Broadbean where to send the jobs to. This is the URL that is created by the plugin that accepts the job feed and creates a job post.
The URL you should enter into this part of the Broadbean form is as follows:
https://domain.com/?wpbb=broadbean
Obviously replacing domain.com for your actual domain name.
Forum: Fixing WordPress
In reply to: Using pre_get_posts Breaks PaginationThanks for those suggestions Ben – you have helped a great deal in solving the problem. You are indeed correct it was the $_POST check that was the problem.
I have now managed to get this working using $_SESSION instead. I have amended the Gist to show this:
Forum: Fixing WordPress
In reply to: Using pre_get_posts Breaks PaginationForgot to mention an example. You can see an example of the behaviour above here:
https://www.chefsjobsuk.com/jobs/
Search for jobs in the Midlands and it returns 3 pages of results. Click on page 2 and we just end up going back to the original post type archive query looking at page 2.
Forum: Hacks
In reply to: 2014 theme need to scale sliderTrying defining the width of the images in the slider and the height in CSS. Something like this:
#featured-content img { width: 100%; height: auto; }
You may have to target the CSS classes better though!
Forum: Hacks
In reply to: Can widget use data array generated by a plugin?Sounds to me like this could a variable scope problem:
https://php.net/manual/en/language.variables.scope.php
Perhaps you need to globalise the variable used by the widget (
$report_data
)