こんにちはritgoさん。
Thank you so much for responding to my post.
I tried to use $jobs
instead of get_job_field
as below.
<?php
require_once(WP_PLUGIN_DIR . '/job-manager/db.php');
if (have_posts()) : while (have_posts()) : the_post(); ?>
<div>
<p><?php echo $jobs[23]; ?><?php echo $jobs[24]; ?></p>
</div>
<?php endwhile; else: ?>
But, it still doesn’t show the contents.
I also used $page
as below, but it doesn’t work.
<?php
require_once(WP_PLUGIN_DIR . '/job-manager/db.php');
if (have_posts()) : while (have_posts()) : the_post(); ?>
<div>
<p><?php echo $page['post_title']; ?></p>
</div>
<?php endwhile; else: ?>
Is this because it doesn’t read “db.php” properly?
Or, do I need to write some codes in “search.php” based on the array in “db.php” ?
Thaks,
Sakura