• Hi..

    I love your plugin … I think it deserves to be on codecanoyn.

    I have a feature request though.

    Rename the beginning of the shortcode, and also add few other names…
    Here is more details on what im trying todo.

    Im developing a website for a large company that wants to replicate some data like phone numbers and staff list..

    So I created ACF and tell them to use your custom shortcode to display the phone-number.
    That way , they can change the phone number on one location , and your plugin will do the rest on displaying correct phone number on all pages. Very neat…

    Well.. The thing is , I want to use it for staff members list.

    So I created a new post type with ACF for staff…

    I would like to have a separeate shortcode for the staff , and I want it to just look for items within this post type…
    I want this to be as easy as possible for this company..
    No post_id or anything… (would be great to be able to write the position instead of post_id

    Example for staff shortcode :
    [staff position=CEO field=phone]

    Example for opening hours :
    [openinghours department=sales field=openinghours]

    Is this possible with your current setup ?
    Im willing to pay you for this feature request if this is not included in , if possible ?

    Please help

    https://www.ads-software.com/plugins/custom-content-shortcode/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    In the latest plugin update, I added an optional module called Meta Shortcodes. This creates a post type called shortcode, with which you can create a shortcode that runs other shortcodes..!

    You can refer to the documentation, under Optional -> Meta Shortcodes.

    Here is an example for a staff shortcode:

    1. Create a post with the title staff. This creates a [staff] shortcode.

    2. The code will depend on your content structure, but the post content could be something like:

    [loop type=staff taxonomy=position term={POSITION}]
      [field {FIELD}]
    [/loop]

    As you see, the shortcode parameters are passed as {TAG}, an uppercased version of the parameter name.

    I think this feature is flexible enough to achieve what you need. I did spend a couple hours on it, and if it’s for a commercial project, a donation would be nice. ?? There is a PayPal link at the bottom of the documentation page.

    That’s a pretty cool feature, Eliot!

    Before, I always created a new post type (template) and then used a shortcode like [content type=template name=post-slug field=html] to display the shortcodes/content.

    This new feature is much more user friendly! ??

    Plugin Author Eliot Akira

    (@miyarakira)

    Hi Peter,

    I’m glad you like the new feature. ?? I put it together quickly based on the request, but now that it’s there, I can also think of different situations where it might be useful.

    To be honest, I’m a bit embarrassed by how big the plugin is growing. My ideal is to build things small/independent and compose them together. For this new feature too, I wondered if I should make it a separate add-on; but, I thought other people could benefit from it, so I included it. Making it an optional module is a good solution I think, so it can be enabled only when it’s used.

    Anyway, thanks for your support!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Feature request’ is closed to new replies.