flantascience
Forum Replies Created
-
Hey – I wanted to let you know I solved this error. In case others have the same problem in the future.
I had it set to add 5 new posts every time I scrolled down. And when I switched to 4 it started working. So it may have to do with the fact I was adding a non-multiple of 4. And I also updated that part you mentioned about having 12 posts. So one of these was the bug.
Thanks for the help and great plugin.
If you want to see it in action:
Maybe I’d be better off with the Pro version? If it will work, I’m interested… please let me know.
Alright, I’ve made some progress. It looks like I’m pulling in some data into the template repeater and it is coming out formatted. But there are some subtle sections being missed that I can’t seem to decipher. It looks light the heights of things aren’t staying constrained and sometimes the columns are also running into each other. And then YouTube stuff looks out of frame.
Any tips?
I took some screenshots:
This is what I’m getting currently w/ Ajax:
https://flantascience.com/images/ajax%20current.jpgThis is what I get if I just display all my posts w/o Ajax.
https://flantascience.com/images/pre-ajax.jpgIt looks like the first 10 posts show up normal in the first 3 rows without any issue through Divi’s regular post displayer. And then the Ajax kicks in after that and I get these mixups.
The site is live at https://dev.americabeheard.com/category/abortion/
I see an option for “theme repeater” that comes with the add-on. Would that work too?
It looks like none of the styling carries over, not necessarily just the Ziggeo.
The regular posts listed on the page come inside a light colored div spaced out 4 to a row with the Ziggeo player.
While the infinite scrolls seem to list one after the next in a column with the no formatting – which includes showing the ziggeo shortcode as plaintext.
I think if I can figure out how to get them to follow the same styling as the other posts, that the ziggeo shortcode will follow.
Alright, I got it pretty close, but not quite there. I followed the guide on the “Examples: Archive.php” page:
You can see my current outcome at https://dev.americabeheard.com/category/abortion/
The code of interest is about 10-20 lines from the bottom.
<?php get_header(); ?> <div id="main-content"> <div class="container"> <div class=" et_pb_row et_pb_row_0 et_pb_row_fullwidth"> <div class="et_pb_column et_pb_column_1_2 et_pb_column_0"> <div class="et_pb_text et_pb_module et_pb_bg_layout_dark et_pb_text_align_center et_pb_text_0"> <!-- holds submit button --> <div class="buttonHolderSubmit"> <div class="buttonClassSubmit"> <p><img src="https://dev.americabeheard.com/wp-content/uploads/2016/02/cameraicon.png" /></p> <p><a href="/submit-a-video">Speak your mind!</a></p> </div> </div> <!-- end submit button --> </div> <!-- .et_pb_text --> </div> <!-- .et_pb_column --> <div class="et_pb_column et_pb_column_1_2 et_pb_column_1"> <div class="et_pb_module et_pb_video landing-video et_pb_video_0"> <div class="et_pb_video_box"> <video controls> <source type="video/mp4" src="https://dev.americabeheard.com/wp-content/uploads/2015/12/Cropped-Tamera-Opening-Video-Shortened-Version.mp4" /> </video> </div> </div> </div> <!-- .et_pb_column --> </div> <!-- .et_pb_row --> <div id="content-area" class="clearfix"> <div id="left-area"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); $post_format = et_pb_post_format(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class( 'et_pb_post' ); ?>> <?php $thumb = ''; $width = (int) apply_filters( 'et_pb_index_blog_image_width', 1080 ); $height = (int) apply_filters( 'et_pb_index_blog_image_height', 675 ); $classtext = 'et_pb_post_main_image'; $titletext = get_the_title(); $thumbnail = get_thumbnail( $width, $height, $classtext, $titletext, $titletext, false, 'Blogimage' ); $thumb = $thumbnail["thumb"]; et_divi_post_format_content(); if ( ! in_array( $post_format, array( 'link', 'audio', 'quote' ) ) ) { if ( 'video' === $post_format && false !== ( $first_video = et_get_first_video() ) ) : printf( '<div class="et_main_video_container"> %1$s </div>', $first_video ); elseif ( ! in_array( $post_format, array( 'gallery' ) ) && 'on' === et_get_option( 'divi_thumbnails_index', 'on' ) && '' !== $thumb ) : ?> <a href="<?php the_permalink(); ?>"> <?php print_thumbnail( $thumb, $thumbnail["use_timthumb"], $titletext, $width, $height ); ?> </a> <?php elseif ( 'gallery' === $post_format ) : et_pb_gallery_images(); endif; } ?> <?php if ( ! in_array( $post_format, array( 'link', 'audio', 'quote' ) ) ) : ?> <?php if ( ! in_array( $post_format, array( 'link', 'audio' ) ) ) : ?> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php endif; ?> <?php et_divi_post_meta(); if ( 'on' !== et_get_option( 'divi_blog_style', 'false' ) || ( is_search() && ( 'on' === get_post_meta( get_the_ID(), '_et_pb_use_builder', true ) ) ) ) { truncate_post( 270 ); } else { the_content(); } ?> <?php endif; ?> </article> <!-- .et_pb_post --> <?php endwhile; ?> <?php $cat = get_category( get_query_var( 'cat' ) ); $category = $cat->slug; echo do_shortcode('[ajax_load_more category="'.$category.'"]'); ?> <?php if ( function_exists( 'wp_pagenavi' ) ) wp_pagenavi(); else get_template_part( 'includes/navigation', 'index' ); else : get_template_part( 'includes/no-results', 'index' ); endif; ?> </div> <!-- #left-area --> </div> <!-- #content-area --> </div> <!-- .container --> </div> <!-- #main-content --> <?php get_footer(); ?>
So I need to copy index.php into my child theme and then do this?
It uses index.php :-/
Forum: Plugins
In reply to: [Custom Post Type Permalinks] Problem, when CPT has hierarchical structureI believe I am having the same problem. Have you solved this?
Ie — If I’ve got Country and Region as a parent-child relationship.
United States
–New England
–South
–MidWest
–Western
Canada
–Eastern
–Western
–Real Real ColdAnd I’d want permalinks, for example, to say abc.com/unites-states/new-england/article-name
??
Forum: Plugins
In reply to: [Custom Post Type Permalinks] taxonomy / taxonomy / postnameCan this be done for child taxonomy?
Ie — If I’ve got Country and Region as a parent-child relationship.
United States
–New England
–South
–MidWest
–Western
Canada
–Eastern
–Western
–Real Real ColdAnd I’d want permalinks, for example, to say abc.com/unites-states/new-england/article-name
??
Thank you much. That was very helpful!
I am still running into an issue where people who are logged in can access the backend dashboard by simply adding /wp-admin to the URL.
I’ve seen two plugins so far that relate to this. One re-names the wp-login URL and has lots of installs and high ratings.
https://www.ads-software.com/plugins/rename-wp-login/The other appears to have multiple security features but has really poor ratings.
https://www.ads-software.com/plugins/hc-custom-wp-admin-url/Forum: Plugins
In reply to: [Video Recorder] How can i show the uploaded video on a templateI am also wondering about this – any estimate on when this feature will be available or what your pricing will look like??
I have them unchecked. See this screenshot:
Forum: Fixing WordPress
In reply to: To install/uninstall plugins, public and private keys requiredI don’t know where the keys are. I have a public on the server (I know where that is). But the private is on my local disk, not on the server. So not sure how I can specify its location on the server. And from what I understand, it’s not good to put your private key on the server.
Forum: Fixing WordPress
In reply to: To install/uninstall plugins, public and private keys requiredIt doesn’t seem an issue of regenerating keys. It’s a matter of where they are located. Here is the screen I am encountering: