Forum Replies Created
-
AuthorPosts
-
August 13, 2015 at 5:03 pm in reply to: Convertion of Avia Page Builder Shortcodes not working #487312
Maybe another approach is more promising.
What im trying to accomplish is a page with a large amount of subsequently loaded av_sections,
just like on facebook, where you can scroll down to get more news.Is this maybe a feature to be implemented in future releases, or do you have an idea how to implement this?
Ideally, each av_section would be an individual post (in wordpress terminology).
However, at the moment i’m basing it off a singular page…August 13, 2015 at 12:54 pm in reply to: Convertion of Avia Page Builder Shortcodes not working #487154just tried something for reference:
when i create a new page template page-2270.php and put the following code in it:
<?php
$content = apply_filters(‘avia_builder_precompile’, get_post_meta(431, ‘_aviaLayoutBuilderCleanData’, true));
$content = apply_filters( ‘the_content’, $content );
$content = apply_filters(‘avf_template_builder_content’, $content);
echo $content;
?>the shortcodes are rendered..
However when i put it in an ajax call the they’re not.
function wp_infinitepaginate() {
global $avia_config;$content = apply_filters(‘avia_builder_precompile’, get_post_meta(431, ‘_aviaLayoutBuilderCleanData’, true));
$content = apply_filters( ‘the_content’, $content );
$content = apply_filters(‘avf_template_builder_content’, $content);
echo do_shortcode($content);exit;
}add_action(‘wp_ajax_infinite_scroll’, ‘wp_infinitepaginate’); // for logged in user
add_action(‘wp_ajax_nopriv_infinite_scroll’, ‘wp_infinitepaginate’); // if user not logged inis there something else i need to include in my function to make it work?
August 13, 2015 at 12:31 pm in reply to: Convertion of Avia Page Builder Shortcodes not working #487136Hi Ismael!
i dont see, how this is going to help, I tried it anyways:
$content = apply_filters(‘avia_builder_precompile’, get_post_meta(431, ‘_aviaLayoutBuilderCleanData’, true));
$content = apply_filters( ‘the_content’, $content );
$content = apply_filters(‘avf_template_builder_content’, $content);
echo do_shortcode(strip_tags($content));The p tags are not generated until the $content = apply_filters( ‘the_content’, $content ); function.
That is the filter that should convert the avia shortcodes as well, but it just puts them out as is..I based my code on the one in template-buildler.php, where it works as expected strangely enough..
Does it maybe have to do with the loop? Does the filter not work outside of the regular wordpress loop?
Im using the same lines inside functions.php, never the less get a different outcome..
im stuck here.August 12, 2015 at 11:28 am in reply to: Convertion of Avia Page Builder Shortcodes not working #486407Applying the $content = apply_filters( ‘the_content’, $content ); filter wraps the shorttags inside p tags,
so the filter is somehow recognized, but the enfold themes’ custom filters are not executed, am i seeing this right?
Do you know why this is? Or maybe is there another way to convert the shorttags?<p>[av_section min_height=’100′ min_height_px=’900px’ padding=’default’ shadow=’no-shadow’ bottom_border=’no-border-styling’ id=” color=’main_color’ custom_bg=” src=’http://neues.meerdesguten.com/wp-content/uploads/2015/02/startseite_gda_bg_150716_fz.jpg’ attachment=’2233′ attachment_size=’full’ attach=’parallax’ position=’center center’ repeat=’stretch’ video=” video_ratio=’16:9′ overlay_opacity=’0.5′ overlay_color=” overlay_pattern=” overlay_custom_pattern=” custom_class=’mdg_post’]<br>
[av_icon_box position=’left’ boxed=” icon=’ue84a’ font=’entypo-fontello’ title=’NOMINEE’ link=” linktarget=” linkelement=” font_color=’custom’ custom_title=’#647c89′ custom_content=’#ffffff’ color=” custom_bg=” custom_font=” custom_border=” custom_class=’mdg_category’][/av_icon_box]</p>- This reply was modified 9 years, 4 months ago by meergut.
August 12, 2015 at 10:19 am in reply to: Convertion of Avia Page Builder Shortcodes not working #486358Hey Ismael,
thanks for your reply, ive tried the do_shortcode, but it doenst do any good :-/
it still just gets printed as shortcodes [av_section (and so on)to implement the infinite scroll i followed a tutorial on tuts+:
http://code.tutsplus.com/tutorials/how-to-create-infinite-scroll-pagination–wp-24873When the user scrolls to the bottom of the screen the function wp_infinitepaginate() is executed
and the echo is appended to the main container via jquery.Why is the convertion to html not working here?
revised function:
function wp_infinitepaginate() {
$myID = 431;
$page = $_POST[‘page_no’];
$post = get_post($myID);$content = apply_filters(‘avia_builder_precompile’, get_post_meta(431, ‘_aviaLayoutBuilderCleanData’, true));
$content = apply_filters( ‘the_content’, $content );
$content = apply_filters(‘avf_template_builder_content’, $content);
echo do_shortcode($content);exit;
}- This reply was modified 9 years, 4 months ago by meergut.
Hi Josue,
okay, the template-builder.php applies the filters to the whole content and outputs it.
What i currently have is an ALB page with a Blog Entries element so that the blog posts are outputted via the loop-index.php.
However the loop-index only outputs an excerpt if you arent viewing a single blog entry, so i overwrote:
$current_post[‘content’] = get_the_content();now if i put a:
echo avia_new_section(array(‘close’=>true,’main_container’=>true));
before the article is output in the loop-index im getting the full size background image on the overview page.
Nevertheless my blogposts are cut in half and the header area is in a separate article and the content area is inside of the #av_section_x div.
can you point me in the right direction how to get every blog post as if id be adding sections in an ALB Page?Thanks so much!
Hey,
im facing a similar issue here: I also want to have the full length posts on the overview page,
however id like to use the advanced layout editor, so the posts can have that parallax background.I tried messing with the loop-index.php so that $content is always get_the_content() but then it throws off the whole page layout.
Is it possible that i can have each individual post as an avia_section with a potential parallax background?Thanks for your help
Jan -
AuthorPosts