NooTheme Premium WordPress Theme › Forums › JobMonster › Changing the order of job content meta inside loop (output via Noo jobs)
- This topic has 6 replies, 2 voices, and was last updated 1 year, 12 months ago by palmtree.
-
AuthorPosts
-
2 years ago #1219539
Hi Jackie,
There is a content-meta paragraph in job information loop that are output through "Noo Jobs" via WP Bakery but also output automatically on /job/ page. An example is attached.
Inside the paragraph tag
, t
here are couple of span class and I want to change the order of it when it is output in HTML.
For example following is a default order
1.
2.
3.
4.
5.
6.But I want to shuffle around the way I want. E.g. 2 > 4 > 1 > 3 > 5 > 6.
I could find some sections of if/elseif code in "job-template.php (framework > job) but couldn't change order. And they are seemingly all go into job meta inside
.
echo '
'.apply_filters('noo_jm_the_job_meta', implode("\n",$html), $args, $job).'
';
I would expect something similar to changing the single job page title section job meta order by modifying jm_the_job_meta array fields section which I figured out (set around line 800 inside heading.php >> layouts folder).
However, this was for only a single job page header title section not for the job information loop.
I couldn't find the solution so far.
It would be great if you could give me your wisdom.
Attachments:
You must be logged in to view attached files.2 years ago #1219541Sorry the code was left off...
-------------------------------------------------------------------Inside the paragraph tag
,
there are couple of span class and I want to change the order of it when it is output in HTML.
For example following is a default order
1.
2.
3.
4.
5.
6.But I want to shuffle around the way I want. E.g. 2 > 4 > 1 > 3 > 5 > 6.
2 years ago #1219542failed again. I attached the screenshot
Attachments:
You must be logged in to view attached files.2 years ago #1219564Hi.
To change the order of the content meta for the job, please check the code at file: wp-content/themes/noo-jobmonster/framework/job/job-template.php line 215 - function: jm_the_job_meta().
1. line 244-260 the code for the span: job-company
2. line 270-281 the code for the span: job-type.
....
Please check that function, then you will know the way to change the order.
Thanks.
2 years ago #1219598Thanks Jackie,
Yes, regarding "jm_the_job_meta_fields", I identified the file you pointed out for what I wanted to do. However...
Have you actually tried to change order of job meta information within that file?
If you tried, you will understand how I could not change the order of job meta information in this file to reflect the change to actual order in job information loop output by using "Noo Jobs" via WP Bakery (or job cards in "/job/" page).
For example, the file (wp-content/themes/noo-jobmonster/framework/job/job-template.php) has the job meta information in the following order (starting around line 270)
1. job_type
2. job-location
3. _full_address
4. job_category
5. job_date
6. _closingI tried to change order like 1, 3, 2, 6, 4 by swapping the order within but does not work.
I hope you could do the same to understand what I mean.
2 years ago #1219617Hi.
I have checked the source code, it also gets the order from the show fields option at the customize/ jobs & company/ job list/ show fields.
I have changed the source code at file: /wp-content/themes/noo-jobmonster/framework/job/job-template.php line 118 to help you change that order.
Please recheck it.
Thanks.
1 year, 12 months ago #1219633This reply has been marked as private. -
AuthorPosts
You must be logged in and have valid license to reply to this topic.