• Resolved carnets2routards

    (@carnets2routards)


    Hi,

    First thanks for your work on this plugin. Third I’m trying and one of the best for now. ??

    I would like to be able to tweak a bit the display of the list of recent post (using the shortcode). No worries for CSS, I override it in the main style.css of my child theme. But that’s another story for PHP.

    I think I found the file: job-postings/include/shortcodes/class-job-list.php but if I duplicate it in my child theme under a folder ‘jobs’ (or with the same plugin folder route) and modify it, I can’t see my override.

    I’m pretty new to tweaking WP and PHP ^^

    Thanks in advance for your time and help!
    Best regards.

    PS: actually almost no worries for CSS override, plugin style seems to be loaded after main style.css and on some override I have to add ‘body’ to be able to override and it doesn’t work all the time ??

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

    (@carnets2routards)

    Hum, I reckon I found the right file I was supposed to edit >< : job-preview.php

    But I will love to have some information on where the variables are coming from. One of the different things I would like to do is add more information on post list (e.g. post date, featured image, company logo, etc.)

    Thread Starter carnets2routards

    (@carnets2routards)

    Well if anybody is interesting, by reading WordPress documentation and doing some print console to check data attributes, I managed to get the information I wanted.

    The one I had trouble with was the category of the post, I was using WordPress taxonomy but it was jobs_category and not category
    e.g. get_the_terms( $post_id, 'jobs_category' ); ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Override shortcodes file’ is closed to new replies.