Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter jacob0601

    (@jacob0601)

    no problem!

    Thread Starter jacob0601

    (@jacob0601)

    Hey Caroline,

    Yep sure can!

    <?php $terms = apply_filters( 'taxonomy-images-get-terms', '', array('taxonomy' => 'yourtaxnamehere') );
    	if ( ! empty( $terms ) ) { echo '<ul">';
    	foreach( (array) $terms as $term ) {
    	echo '<li>';
    	echo '<div><a href="' . esc_url( get_term_link( $term, $term->taxonomy ) ) . '">' . wp_get_attachment_image( $term->image_id, '' ) . '</a></div>';
    	echo '<div><a href="' . esc_url( get_term_link( $term, $term->taxonomy ) ) . '">' . $term->name . '</a></div>';
    	echo '</li>';
    	  }
    	echo '</ul>';
      }
    ?>

    The only thing I did aside from about was apply classes to the above ul, li and divs.

    Thread Starter jacob0601

    (@jacob0601)

    Hey Akis,

    I went with a diff plugin for the IS, until Jetpack supports the custom queries. As soon as Jetpack’s IS can handle this without hacking, I’m going back.

    I am almost positive other people are getting it work already though. This website seems to be using Jetpack IS and using custom sorting without any issues; so it can be done. Not sure how they got it to work though…

    Cheers!

    Thread Starter jacob0601

    (@jacob0601)

    Thread Starter jacob0601

    (@jacob0601)

    Ahh that explains a lot:) I was actually wrong about it being fine locally; it’s messed up on both my local and live test site (was just more apparent on live). I’ve sent you guys a message via the jetpack messaging system if you care to take a look (although we know why it is not working now).

    Dang, I really liked your Infinite Scroll too:/

    Cheers!

    – make the background of the carousel white/transparent
    – take the radius off of the corners of the carousel

    I’d try changing this (located in https://daniellefurfaro.com/wp-content/plugins/jetpack/modules/shortcodes/css/slideshow-shortcode.css)

    .slideshow-window {
    background-color: #222;
    border: 20px solid #222;
    border-radius: 11px;
    -moz-border-radius: 11px;
    -webkit-border-radius: 11px;
    -khtml-border-radius: 11px;
    margin-bottom: 20px;
    }

    to

    .slideshow-window {
    background-color: #fff;
    border: 20px solid #222;
    margin-bottom: 20px;
    }
    Thread Starter jacob0601

    (@jacob0601)

    Sure can. As soon as it goes live, I’ll send you a message (should be in the next day or two).

    Thanks:)

    Thread Starter jacob0601

    (@jacob0601)

    Sure does, thanks so much for the response:)

    Thread Starter jacob0601

    (@jacob0601)

    It still doesn’t load on pages if I make that change. The page is paginated though and manually going through the pages works.

    The website that I saw that had multiple ‘pages’ using Jetpack IS was somehow ‘tricking’ IS into think the page was home. So there were two sections with body class = home. Maybe that’s the key to getting it to work?

    Not totally sure how I’d go about doing that, but using the archive year to sort chronologically and and changing the home sorting with pre_get_posts works pretty well, so I can’t complain.

    Thread Starter jacob0601

    (@jacob0601)

    For now I just changed my index sort order with a pre_get_posts function and link to the chronological query via an archive links; until I can figure out a better way.

    Thread Starter jacob0601

    (@jacob0601)

    The only difference between my blog post list (index) and the my custom page template is the way I grab the posts. Basically I wanted one page to display the most recent posts and another page to display the posts sorted by a meta value. In theory I thought that would work by having the front page (display latest posts) and make a page template that would dis play posts sorted by my choosing (meta value).

    If I used the same loop query:

    <?php while ( have_posts() ) : the_post(); ?>
    	<?php get_template_part( 'content', get_post_format() ); ?>
    <?php endwhile; ?>

    in a page template, it only returns the actual page, so thats why I used a different method of grabbing the posts (pasted above).

    The goal was to have 2 blog posts pages, each ordered differently.

    If I change my posts page to the page template, IS works fine, yes.

    It seems I am a bit out of my depth here and probably going about this the wrong way, but since is_page() will only enable IS for the actual content of the page, do you have any recommendation for obtaining the behavior I am hoping to get?

    Thanks again.

    Thread Starter jacob0601

    (@jacob0601)

    Thanks Jeremy! That actually helped me enable IS with my search queries (which was something else I was hoping to get).

    I still can’t seem to get it to work with my page template. To enable support for search queries, I just modified line 876 to include is_search() which worked fine.

    I thought the same would go for pages by adding support via is_page() to the same line, but that didn’t work. I then decided to try a custom function, like you suggested in the other posts. So, I removed my alterations to the line 876 and added the function (to my functions.php), which included enabling support for search queries and pages via is_**(). Once again, support for search queries was added but not for pages.

    Since I am trying to get IS to function with a specific template I tried is_page( 'template_name' ) but that did not work either.

    I am really scratching my head over here; unfortunately the site is not live or I would link it and the theme is custom so I can’t reference any theme either.

    I do notice that the script is not initializing on my pages but is on everywhere else I added support. As you can see in this screenshot, the script is loaded on my home screen, but not on my page template (even with the added support via the function).

    I am thinking maybe it has something to do with my query on the page template? Could that be causing it?

    This is how I am getting posts on the page template:

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    	$args = array('paged' => $paged );
    	$wp_query = new WP_Query($args);
    	while ( have_posts() ) : the_post(); ?>
    	<?php get_template_part( 'content', get_post_format() ); ?>
    	<?php endwhile; ?>
    <?php wp_reset_postdata(); ?>

    Do I need to change the render property to get IS to accept this?

    Thanks again!

    Thread Starter jacob0601

    (@jacob0601)

    Holy crap; what a stupid mistake on my part; that is completely correct and fixed the issue right up. Sometimes another set of eyes just helps out so much.

    THANK YOU!!!

    I am having another slight issue as well, I will start a new topic about it though since it is different than this posting.

    Again, thanks so much Otto.

    Thread Starter jacob0601

    (@jacob0601)

    I found something about what is going on.

    So the original content loads with the preview_thumbnail inside of the a link, but any content that loads via infinite-loop is outside of the a link.

    Original content:

    <a href="https://linkhere.com">
    <img width="300" height="150" src="https://imagehere.jpg" class="attachment-post-thumbnail wp-post-image" alt="">
    </a>

    Infinite – scroll loaded:

    <a href="https://linkhere.com">
    </a>
    <img width="300" height="150" src="https://imagehere.jpg" class="attachment-post-thumbnail wp-post-image" alt="">

    Not sure why this is happening:(

    Thread Starter jacob0601

    (@jacob0601)

    I actually got this done and by me, I mean a programmer I know did it for me.

    I’m not sure exactly how it works (from a coding stand point)

    But basically it go through all the tags and lists related posts in order of tags in common. I only show 3 related posts, so a good example would be relatedpost1 has 100% tags in commong, related posts2 has 80% in common and relatedpost3 has 20%.

    If more than one post meet the criteria it then, also, shuffles the posts, so that the related posts aren’t the same every single click.

    It work fantastic; but I am not a php coder so I don’t even know where/how he implemented it.

    Thanks for the reply.

Viewing 15 replies - 1 through 15 (of 15 total)