danjbh
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Broadbean] Show ‘industries/Categories’ listIf I do this:
<?php $term_list = wp_get_post_terms($post->ID, 'wpbb_job_industry', array("fields" => "all")); if ($term_list) { foreach( $term_list as $term ) echo $term->name; } ?>
Outside of a loop it only returns the first industry, so how can I get them all to show outside of a post loop?
Forum: Plugins
In reply to: [WP Broadbean] Show ‘industries/Categories’ listWhat I am trying to do is literally just create a simple list of the ‘industries’ that have been created in the footer. I am not sure what arguments are required in the get_the_term_list(); function…
Forum: Plugins
In reply to: [WP Broadbean] Show ‘industries/Categories’ listSo this will allow for me to just show a list of industries that have been created? Are you able to show me an example?
Forum: Plugins
In reply to: [WP Broadbean] Apply with LinkedInHi Mark, no problem is what a little bit of a long shot but thank you for your advice so far.
Forum: Plugins
In reply to: [WP Broadbean] Apply with LinkedInThanks for confirming Mark. I know it isn’t directly related to your product however do you know if the ‘Apply With LinkedIn’ button works anymore?
- This reply was modified 7 years, 11 months ago by danjbh.
Forum: Plugins
In reply to: [WP Broadbean] Posted imageGot it! Works perfectly thank you.
Forum: Plugins
In reply to: [WP Broadbean] Display jobs from certain categoriesOk I have figured it all out now the examples you sent me from the codex.
Forum: Plugins
In reply to: [WP Broadbean] Display jobs from certain categoriesI am trying to access it by the following but getting nothing in return:
<?php $jobType = get_post_meta(get_the_ID(), 'wpbb_job_type', true ); echo $jobType; ?>
Forum: Plugins
In reply to: [WP Broadbean] Display jobs from certain categoriesThat right I don’t want to query by that taxonomy I just want to echo out whichever of the job types where selected. Im struggling to understand this also, could you show me an example?
Forum: Plugins
In reply to: [WP Broadbean] Display jobs from certain categoriesSo what I have done is this:
<?php $args = array( 'post_type' => 'wpbb_job', // this is the post type name for jobs 'query_1' => array( array( 'taxonomy' => 'wpbb_job_industry', // this is the job industry taxonomy name 'field' => 'slug', 'terms' => 'marketing', // this is the slug of the term e.g. accountancy ), ), 'query_2' => array( array( 'taxonomy' => 'wpbb_job_type', // this is the job industry taxonomy name 'field' => 'slug', 'terms' => 'design', // this is the slug of the term e.g. accountancy ), ), ); $loop = new WP_Query( $args ); ?>
How can I then echo out the job type – I dont want it to filter by that job type though
Forum: Plugins
In reply to: [WP Broadbean] Display jobs from certain categoriesIs there a way to get the also the ‘wpbb_job_type’ to echo out?
Forum: Plugins
In reply to: [WP Broadbean] Display jobs from certain categoriesRight got it, that works perfectly!
Forum: Plugins
In reply to: [WP Broadbean] Display jobs from certain categoriesThe biggest problem im having is getting jobs by category/industry I am using the plugins default setup. For instance we have ‘Job Industries’ as an option which feels like a category to me. What I need to do in my query is be able to reference that somehow?
Forum: Plugins
In reply to: [WP Broadbean] Display jobs from certain categoriesOk so I figured out that part and am able to access the custom meta fields. How can I call out the location & category/industry etc
Forum: Plugins
In reply to: [WP Broadbean] Display jobs from certain categoriesThis is what I am trying to do but with no success:
$loop = new WP_Query( array( 'post_type' => 'wpbb_job', 'category_name' => 'marketing', 'posts_per_page' => -1 ) ); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> Jobs should be listed here... <?php endwhile; wp_reset_query(); ?>
The field in the broadbean plugin is job industries