Search doesn't work.
-
WordPress 4.3.1
Job Manager: 7.25
https://www.jyukubaito.com/samplepage/Hello,
I wand to search and view the job information registerd with JobManager.
I tried to view them using theme file search.php, but I couldn’t.
My WordPress is multisited.I pasted the same code as JobManager job information template into serch.php, short code [job_field○○] appears as a string, not the content of [job_field○○].
I think I need the function to call the content of [job_field○○], I don’t know how I write my code.Current search.php is the following (omitted the unnecessary):
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div> <p>[job_field23][job_field24]</p> <a href="<?php the_permalink(); ?>"><?php the_title(); ?>([job_field11][job_field12])</a> </div> <?php endwhile; else: ?>
I wrote the following code, but it doesn’t work.
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div> <p><?php get_job_field('job_field23'); ?><?php get_job_field('job_field24'); ?></p> </div> <?php endwhile; else: ?>
Hope someone can Help.
Thank you,
Sakura
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Search doesn't work.’ is closed to new replies.