Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter vampyregod

    (@vampyregod)

    and I’m not sure if this make a difference, but I don’t see a place for entry content.

    I see calls for:
    entry-header
    entry-meta
    entry-summary
    entry-footer

    I don’t see a div for content, and I’m not sure if I am supposed to; or if that is something that might solve my issue, as the media is the only content that is actually on the attachment pages that the links go to.

    Thread Starter vampyregod

    (@vampyregod)

    this is confusing to me, but it’s starting to clear up. I really appreciate the input people are giving me, although my problem isn’t solved yet, I feel like I’m learning.

    • This reply was modified 7 years, 5 months ago by vampyregod.
    • This reply was modified 7 years, 5 months ago by vampyregod.
    Thread Starter vampyregod

    (@vampyregod)

    I apologize, that call for the header was not in the code, and I have no idea how it got into my paste, it was accidental. I’m just beginning to learn, and this is really helping me understand. so the search.php is calling for this search template called contentsearch, and the code I have there is

    
    <article id="post-<?php the_ID(); ?>" 
    <?php post_class(); ?>>	
    <header class="entry-header">
    		
    <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
    
    		
    <?php if ( 'post' === get_post_type() ) : ?>
    			
    
    <div class="entry-meta">				
    <?php aza_posted_on(); ?>			
    </div>
    <!-- .entry-meta -->
    		
    <?php endif; ?>	
    </header>
    <!-- .entry-header -->
    
    	
    <div class="entry-summary">		
    <?php the_excerpt(); ?>	
    </div>
    <!-- .entry-summary -->
    
    	
    <footer class="entry-footer">		
    <?php aza_entry_footer(); ?>	
    </footer>
    <!-- .entry-footer -->
    
    </article>
    <!-- #post-## -->
    

    and that is the template for my search results page, if it has results, otherwise it calls for the content-none template;

    I did try to comment out the get template, and placed the code where you described.

    that returned a page with a link for older posts, which goes to a results page with a link for newer posts, but no content.

    • This reply was modified 7 years, 5 months ago by vampyregod.
    Thread Starter vampyregod

    (@vampyregod)

    sorry, it seems half of my code got cut off.

    
    
    <?php get_header(); ?>
    
    <header class="entry-header">
    
    <?php 
    the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', 
    esc_url( get_permalink() ) ), '
    </a>
    </h2>' ); 
    ?>
    
    <?php 
    if ( 'post' === get_post_type() ) : 
    ?>
    
    <div class="entry-meta">
    <?php 
    aza_posted_on(); 
    ?>
    </div><!-- .entry-meta -->
    
    <?php 
    endif; 
    ?>
    </header><!-- .entry-header -->
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    	
    <div class="entry-content">
    <?php the_excerpt(); ?>
    </div><!-- .entry-summary -->
    
    	
    
    <footer class="entry-footer">
    		<?php aza_entry_footer(); ?>
    	</footer><!-- .entry-footer -->
    </article><!-- #post-## -->
    
    
    Thread Starter vampyregod

    (@vampyregod)

    I have located the php file, but im not sure what to change it to. I want the results page to display thumbnails that link to the media file so that i can create a lightbox gallery of search results.

    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <header class="entry-header">
    <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
    
    <?php if ( 'post' === get_post_type() ) : ?>
    <div class="entry-meta">
    <?php aza_posted_on(); ?>
    </div><!-- .entry-meta -->
    <?php endif; ?>
    </header><!-- .entry-header -->
    
    <div class="entry-summary">
    <?php the_excerpt(); ?>
    </div><!-- .entry-summary -->
    
    <footer class="entry-footer">
    <?php aza_entry_footer(); ?>
    </footer><!-- .entry-footer -->
    </article><!-- #post-## -->
    • This reply was modified 7 years, 5 months ago by vampyregod. Reason: /end code
    Thread Starter vampyregod

    (@vampyregod)

    Ok i will look there. Thank you…

    I have the same issue. I have multiple wordpress installs on separate shared hosting accounts. Sometimes the media library or a post with media inserted will redline my servers ram and i/o. This will cause every website on the server to crash. The only common plugins are jetpack, yoast seo, and manageWP. For some of the sites those are the only plugins. This happens at random, and seems to be a hanging php process related to the media.

    Thread Starter vampyregod

    (@vampyregod)

    <?php
    
    get_header(); ?>
    
    <div class="blog-content-wrapper">
    <div class="container blog-content">
    <div class="row">
    <div class="col-md-9">
    <section id="primary" class="content-area">
     
    <main id="main" class="site-main" role="main">
    
    <?php if ( have_posts() ) : ?>
    <header class="page-header">
    <h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', 'aza-lite' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
    </header><!-- .page-header -->
    
    <?php while ( have_posts() ) : the_post();
    
    get_template_part( 'template-parts/content', 'search' );
    
    endwhile;
    		      the_posts_navigation();
    
    else :
    
                			    get_template_part( 'template-parts/content', 'none' );
    
    endif; ?>
    
    </main><!-- #main -->
    </section><!-- #primary -->
    </div>
    
    <div class="col-md-3">
    <?php get_sidebar(); ?>
    </div>
    </div>
    </div>
    </div>
    
    <?php get_footer(); ?>
    
    
    • This reply was modified 7 years, 5 months ago by vampyregod.
    • This reply was modified 7 years, 5 months ago by vampyregod.
    Thread Starter vampyregod

    (@vampyregod)

    Im a little lost how to do this. I have created a child theme. I can access the editor for search.php, but im unsure how to reword the search.php. i apologize for being a noob.

    I have tried changing the get content to get the image in a couple different ways, and they have all caused errors. I will get the code so someone can point me in the roght direction.

    Im having a similiar issue. My gallery shortcode is displayed.

    Same problem. I can change it to a fan page, but it seems after a post or two it reverts back to disabled.

    vampyregod

    (@vampyregod)

    Praveen,

    thanks for the plugin.

    the pagination option seems to affect the gallery view on the back end, however, is there any way to control the front end? the problems is, i have a gallery of 25 or more videos, and when someone clicks the thumbnail, they are prompted to save the file instead of playing it. thank you for your feedback.

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