• Resolved Garbonso

    (@garyupham)


    Hi. This plugin is 99% perfect for what I need to funciton for client. The main thing I need to add is the ability to create a bunch of custom fields for individual job postings for them (ex. description, physical demand, pay, etc.)

    Is there anyway of doing this? I see in ACF, I have the ability to apply these to an “ad” template, but I don’t know where to edit code to actually have the fields show up on the ad template backend.

    Hopefully that make sense. Basically, if I wanted to add these fields to say a generic blog post, I’d do the same thing and apply them to “posts”, then go to single.php and add the fields to populate. I don’t know where I would add the fields for this, or if it’s possible.

    Any insight would be truly appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Garbonso

    (@garyupham)

    Ok, well the answer was pretty simple … you just add them in single.php as I dismissed above. If it’s a single that you assigned them to show up on (‘All Ads’ in this case), they show up.

    I’ll leave this up instead of deleting in the off-chance it helps somebody down the road.

    Thread Starter Garbonso

    (@garyupham)

    Ok. There was an addition to this which HOPEFULLY is the final fix.

    The above method works, but if you have any hard-coded stuff to go along with whatever is populated in the custom fields, that will still show up on EVERY post (single.php).

    The solution for this now is this

    <?php if (is_singular('post')) { ?>
    
    <?php } else { ?>
    
    EVERYTHING THAT YOU WANT TO SHOW UP ON THE JOB POSTS, BUT NOT NORMAL POSTS WOULD GO HERE
    
    <?php } ?>
    

    If you have made it this far into this unnecessary public internal dialog I’ve had with myself, I leave you with this parting note: My friend David will never be as good at pvp as me.

    • This reply was modified 4 years, 11 months ago by Garbonso.
    Plugin Author Farhan Noor

    (@farhannoor)

    Hi Garbonso,

    Thank you for sharing your thoughts, the best way to target ads created with ApplyOnline plugin is to write code into special template file named as single-aol_ad.php

    Happy Coding!

    Thread Starter Garbonso

    (@garyupham)

    Oh awesome. So that would be specifically for the ad template. Awesome. The solution I came up with worked, but yours is way more practical for sure. If possible, could you tell me how you knew that would be the file name for the template? Or rather, how I could have figured/found that out?

    • This reply was modified 4 years, 11 months ago by Garbonso.
    Plugin Author Farhan Noor

    (@farhannoor)

    Obviously, you should consult plugin’s docs which can be found on plugin’s website. It is also mentioned on the main plugin page.

    And please don’t forget to write your review for this plugin.

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Advanced Custom Fields with this plugin’ is closed to new replies.