• Resolved codeforweb

    (@codeforweb)


    Hi,

    I want to display some of the ads only to logged in users. Currently, I am using the id numbers to display these restricted ads.

    But I see that there are few attributes that I can use in the shortcode.

    For example, type=”ad” is the default attribute, so my question is can I create a new type=”restricted” which I can use in my shortcode to display ads to the logged in users?

    Any help will be appreciated!
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Farhan Noor

    (@farhannoor)

    Hi,
    Yes you can use type attribute. To create new type, go to ApplyOnline/Settings/Type section in your WordPress Admin Panel.

    Best Regards

    Thread Starter codeforweb

    (@codeforweb)

    Hi @farhannoor

    Thank you for the response. It helped me.

    But there is one issue that I’m facing currently. I have two job portals on my webiste,

    1. one displays all the jobs for any visitor

    2. the second displays only specific jobs for logged in users. So, in order to display these jobs I’m using the job id’s.

    For example, [aol ads=”2866,2864,2860,2862,2858,2850,2848,2846″ type=”ad”] this is my shortcode that I’m using for the logged in users. But the problem is even after the job is expired, it still displays these ads for logged in users!!

    Is there a way I can give priority to expiry date first and then to the job id?

    Plugin Author Farhan Noor

    (@farhannoor)

    You should have another ad type along with default one e.g. restricted. To display restricted job ads you should use [aol type="restricted"] shortcode.

    When you select an expiry date for an ad there is another option available alongside: Hide ad or Hide form. You should select Hide ad to make expired ads unavailable.

    I Hope it will be helpful for you.

    Thread Starter codeforweb

    (@codeforweb)

    Hi @farhannoor
    I have checked the settings for the expiry of the ads and I have selected “Hide Ad” but it still does not work in my case.

    It is still displaying all the ads that I have mentioned in the shortcode, even though they have expired.
    [aol ads=”2850,2848,2846″ type=”ad”]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘can we create a new type attribute to display ads to logged in users’ is closed to new replies.