Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter asmitta

    (@asmitta)

    I duplicated my website and the new one doesn’t have that issue.

    I have done before reading your answer but i take note. if it occurs again i’ll apply it and give your a feedback.

    Thanks

    Thread Starter asmitta

    (@asmitta)

    I resolve the problem. What have i done ?

    • Create and register my custom post type, create a template for it.
    • Create a small code that creates a post for each of my jobOffers with these fields: wp_insert_post([?'post_content' => $jobOffer->description, 'post_title' => $jobOffer->label,?'post_excerpt' => substr($jobOffer->description, 75),?'post_type' => 'phenix_job_offer',?post_name' => sanitize_title($jobOffer->label),?'meta_input' => ['job_offer' => $jobOfferId] ]);
    • After that in my template i fetch the jobOffer with the post meta key ‘job_offer’ then render it as i want.
    • This reply was modified 1 year, 8 months ago by asmitta.
Viewing 2 replies - 1 through 2 (of 2 total)