Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author PluginCentral

    (@plugincentral)

    Hi shrecked,
    it looks like you’ve set up the post limit correctly. When a Subscriber publishes a Playerad, do they do that through the admin screen or through a custom form?

    If Playerads are added through a custom form then you’ll need to wrap the limit post shortcode around the form – [limit_posts type=”Playerad” action=”publish”] your form code [/limit_posts].

    If Playerads are added through the admin screen then it should just work. Let me know if Subscribers are using admin screen to enter Playerads – I did originally test this with a custom post type and it seemed to work OK, but I might have missed something.

    Thanks.

    Thread Starter shrecked

    (@shrecked)

    They’re posting through the wordpress dashboard, but I am using the advanced custom fields plugin to add a few custom metaboxes to the post type.

    Plugin Author PluginCentral

    (@plugincentral)

    OK, it should be working then. I’ll give it a test with a custom post type and see if I can find what the problem is. Will post again as soon as I have some news for you.

    The same problem here with the custom post type. I use the WP Adverts plugin that allows subscribers to add adverts through a frontend form. I can set a limit for these adverts (of type “adverts”), but it does not limit the posts. No errors.

    Plugin Author PluginCentral

    (@plugincentral)

    shrecked, I’ve tried to limit posts with a custom post type, through the wordpress dashboard here and it works OK. So I’m a bit stumped. I’ve just uploaded v1.0.7 of the plugin (which should be live soon) – you could try that, I don’t think it’ll fix your problem though.

    I assume that you are logged in as a Subscriber when you are testing this – it’s a silly question I know – but I thought I would just check. You could try setting up the same rule for the Administrator role – then try it as the Administrator (it’s unusual for subscribers to post, unless the capabilities for the subscriber role have been changed). Let me know if any of that helps.

    Lurie, can you send me details of how you are using the limit_posts shortcode with the front end form for adverts. Also can you send me details of the limit post rules you have set up (use the contact form on https://www.limitposts.com if you don’t want to post this information publicly) – screen shots will be fine.

    Thanks.

    Sorry, this was my fault! I did not read carefully the FAQ about the limit_posts shortcode. Now it’s OK. I just wrapped the shortcode from WP Adverts plugin in the limit_posts shortcode and this worked as a charm:

    [limit_posts type=”Advert” action=”publish”] [adverts_add] [/limit_posts]

    Thank you very much for your plugin and your support!

    Regards,
    Iurie

    Plugin Author PluginCentral

    (@plugincentral)

    Lurie, glad to hear you got it working.
    Thanks for the feedback.

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘custom post type’ is closed to new replies.