-
AuthorPosts
-
July 12, 2016 at 4:12 pm #659958
hey, I would like to know how to use those tags in my template. Right now I made a page template in advanced layout builder and using debug mode, I took out the code. In between the [av] tags I want to add my php queries and put it in custom template, but it doesnt work. Can you help me?
July 13, 2016 at 11:57 am #660313Hey Duop,
I’m not sure I understand what you mean by that but send us admin login details in private and point out the page in question and we’ll have a look at it. Please note that php code will not work in the builder.
Best regards,
RikardJuly 13, 2016 at 5:04 pm #660499now you should understand the idea, but again, I took the “advanced layout editor” code(from debug mode) and I want to put it in the page template. what am I missing here? thank you
<?php /* * Template Name: Custom page * Description: Page template */ get_header(); ?> [av_heading tag='h3' padding='10' heading='Hello' color='' style='' custom_font='' size='' subheading_active='' subheading_size='15' custom_class=''][/av_heading] [av_one_half first min_height='' vertical_alignment='' space='' custom_margin='' margin='0px' padding='0px' border='' border_color='' radius='0px' background_color='' src='' background_position='top left' background_repeat='no-repeat' animation='' mobile_display=''] [av_masonry_entries link='category' sort='yes' items='12' columns='flexible' paginate='yes' query_orderby='date' query_order='DESC' size='fixed masonry' gap='1px' overlay_fx='active' id='' caption_elements='title excerpt' caption_styling='always' caption_display='always' color='' custom_bg=''][/av_masonry_entries] [/av_one_half][av_one_half min_height='' vertical_alignment='' space='' custom_margin='' margin='0px' padding='0px' border='' border_color='' radius='0px' background_color='' src='' background_position='top left' background_repeat='no-repeat' animation='' mobile_display=''] [av_countdown date='' hour='12' minute='0' min='1' max='5' align='center' size='' style='center'][/av_countdown] [/av_one_half][av_section min_height='' min_height_px='500px' padding='default' shadow='no-shadow' bottom_border='no-border-styling' scroll_down='' id='' color='main_color' custom_bg='' src='' attach='scroll' position='top left' repeat='no-repeat' video='' video_ratio='16:9' video_mobile_disabled='' overlay_enable='' overlay_opacity='0.5' overlay_color='' overlay_pattern='' overlay_custom_pattern=''] [av_slideshow size='featured' animation='slide' autoplay='false' autoplay_stopper='' interval='5' control_layout='' perma_caption=''][/av_slideshow] [/av_section] <?php get_footer(); ?>
- This reply was modified 8 years, 4 months ago by Duop.
July 14, 2016 at 7:52 am #660707Hi Duop,
The shortcode needs to be added using the following php code for it to show:
<?php echo do_shortcode('[shortcode]'); ?>
Replace [shortcode] with the shortcodes you need.
Let me know if you need further assistance.
Best regards,
JordanJuly 14, 2016 at 12:45 pm #660806oh right… :) thank you
July 14, 2016 at 8:47 pm #661020 -
AuthorPosts
- You must be logged in to reply to this topic.