Forums

[resolved] [Plugin: Custom Field Template] How to get templates working (3 posts)

  1. modsuperstar
    Member
    Posted 1 month ago #

    Maybe something is flying right over my head on this one, but I can't figure out how to get the templates to apply. I currently am using the Autohook of the_content function to display my data by simply having [cft key=Options] [cft key=Prices] in the content area there.

    It outputs the items as list items, but I haven't been able to figure out how or where I need to define which template to use. I tried adding [cft template=1] to the Autohook of the_content, but that didn't work. I don't know PHP, so I'm kind of at a loss for how to get the template to apply to my output. Little help please?

  2. modsuperstar
    Member
    Posted 1 month ago #

    I realized I'm using the wrong vocabulary here. What I need is to get the format to apply to my values. I can't seem to get the format template to apply to my stuff through the_content Autohook. I'm putting [cft key=Prices format=0] into the_content box in the settings and not getting any result.

  3. modsuperstar
    Member
    Posted 1 month ago #

    Okay, figured it out. Just needed to put [cft format=0] in the_content autohook to get it to work. I had tried that previously, but for some reason the plugin stopped outputting any data, so I had to restore it back to default and try again. Don't know what would have caused it to stop functioning though.

Reply

You must log in to post.

About this Topic