Okay
  Public Ticket #548792
Visual composer to template?
Closed

Comments

  • Alex started the conversation

    Hi, I designed a page for a custom post type using the Visual Designer and I'd like to hard-code a template file using the content (so that all the custom posts are simple to create and have a similar layout.) I had thought that I would be easily able to do that by simply copying the output from the_content() and pasting it into my template file but for some reason none of the visual composer components are popping in.

    The following two links should look almost identical:

    http://sarasotapropertygroup.com/nc_community/10075/ - this one is working properly. Content including visual composer elements is displayed via the_content.

    http://sarasotapropertygroup.com/nc_community/equestrian-estates/ - this one isn't working. Content is hard-coded into the template file (both posts use the same template) but the visual composer elements don't display.


    Thoughts?

  •  8,990
    Tahir replied

    Hey ,

    You will have to turn on VC for that particular post type in here : http://prntscr.com/8oqzfk .

    Thanks


    ThemeNectar Support Team 

  • Alex replied

    Thanks for your response. I had already done that; it does not have an effect on my page. The screenshot to confirm is attached.

  • Alex replied

    Also both pages use the same template file. You\'ll see in the content that there is both a *START* and an *END* tag; the only thing I did differently between the two pages was create one using the visual composer and create the other by copying and pasting the resulting source HTML from the first page into the template file. For the purposes of this conversation I did add a conditional \'if\' statement to the PHP to return one page using the_content() and the other using the resulting source code based on the post ID.

  • Alex replied

    Tahir, I see now after more research that the Visual Composer plugin replaces the_content();, which is why things weren\'t working for me; I was able to resolve my issue by using the built-in template feature, of which I wasn\'t aware. Thanks for taking a look for me - I believe my issue is resolved.