Support » Plugin: Code Embed » Does Plugin support unlimited custom field names?

  • Resolved Marj Wyatt

    (@marjwyatt)


    I’m using your plugin to replace code that was previously embedded with a now obsolete plugin named EmbedIt (SuperPro).

    The site has used the obsolete plugin to embed hundreds of videos into about 100 posts. I’m aware that your plugin does not permit reuse of custom field names because your custom field names are assigned globally on the site, not per post.

    I’d like to know before I go too far down this path whether I’ll hit a wall of maximum custom field names.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Artiss

    (@dartiss)

    Hi Marj,

    I’m sure there’s a limit somewhere but I suspect you won’t find it 😉 So the answer is… go for it. If there is a limit hidden somewhere, let me know and I’ll do my best to fix it.

    I’m aware that your plugin does not permit reuse of custom field names because your custom field names are assigned globally on the site, not per post.

    That’s not actually true. By default, you can use the same name on different posts and that’s exactly how I use it.

    But this is what’s cool… if you add an embed to one post and don’t use that name anywhere else, you can then access from another post. However, as soon as you re-use the name, the embed becomes unavailable outside of the original post. This is one of the reasons why there’s a search feature under Tools, so you can track down where embed have been used.

    So, if you want to {{CODE1}} through to {{CODE100}} in seperate posts, then you can.

    Thread Starter Marj Wyatt

    (@marjwyatt)

    Thanks, David.

    Well, if you’re telling me that I can reuse CODE100 on multiple posts, that doesn’t gel with what I had experienced. When I read over the documentation, it seemed to suggest that I could not reuse the same CF name.

    My scenario is that there is different embed code for each custom field, each embed code calling different videos. I assumed, when I read the documentation, that I could reuse the code for your plugin if it referred to the same content in the custom field.

    When using EmbedIT, we could name custom fields for each post, beginning with HTML1.

    What am I misinterpreting?

    Anyway, I am soldiering on and using a different CODExx for each custom field where I’m replacing EmbedIt CF names. If I hit a limitation, I’ll be back.

    Plugin Author David Artiss

    (@dartiss)

    Well, if you’re telling me that I can reuse CODE100 on multiple posts, that doesn’t gel with what I had experienced.

    This depends.

    Let me give a couple of examples…

    Example 1 – you add a script to the custom field of a post and name is CODE100. You can enter {{CODE100}} within the post for the script to appear at that location within the post. In a second post you add {{CODE100}} within the post and the same script will run.

    Example 2 – You do the same as above but in the second post, you add a new script to a custom field and name it CODE100 too. If you enter {{CODE100}} within the post the script within this post will be used, not the one in original post. If you try and use {{CODE100}} within another post, it now won’t work as there are two scripts now named this.

    tl;dr – you can share a script across posts as long as you’ve only defined it once.

    Thread Starter Marj Wyatt

    (@marjwyatt)

    Your second example is the situation at the development. Each video is unique. Here’s an example from one post.

    CODE100

    <center><div id="evp-5e50e94bc9e2d78d5a1e7991d60d5019-wrap" class="evp-video-wrap"></div><script type="text/javascript" src="https://www.vegetablefruitcarving.com/easy_vid_play/framework.php?div_id=evp-5e50e94bc9e2d78d5a1e7991d60d5019&id=MS1wZWVsYW5kcm9zZXN1cmxub3RkZWludGVybGFjZWQtMW00di0xLm00dg%3D%3D&v=1340321922&profile=default"></script><script type="text/javascript"><!--
    _evpInit('MS1wZWVsYW5kcm9zZXN1cmxub3RkZWludGVybGFjZWQtMW00di0xLm00dg==[evp-5e50e94bc9e2d78d5a1e7991d60d5019]');//--></script></center>

    CODE101

    <center><div id="evp-69456d05828b611f8c698b1785cbb086-wrap" class="evp-video-wrap"></div><script type="text/javascript" src="https://www.vegetablefruitcarving.com/easy_vid_play/framework.php?div_id=evp-69456d05828b611f8c698b1785cbb086&id=Mi1jYWtlLWFuZC1taXN0YWtlcy11cmwtZGVpbnRlci0xbTR2LTEubTR2&v=1340322210&profile=default"></script><script type="text/javascript"><!--
    _evpInit('Mi1jYWtlLWFuZC1taXN0YWtlcy11cmwtZGVpbnRlci0xbTR2LTEubTR2[evp-69456d05828b611f8c698b1785cbb086]');//--></script></center>

    I’ll proceed on the path, assigning each video in every post a different CODExxx. You’ve been very responsive to my inquiries, so I’m sure you’ll come up with a fix quickly if I hit some unforeseen maximum.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Does Plugin support unlimited custom field names?’ is closed to new replies.