Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Try this CSS, it will decrease the top and bottom spacing that you currently have setup:

    .site-footer {
    padding: 1em 2em;
    }

    Right now you have the padding there set to 2em. Which is creating the extra whitespace.

    .site-footer {
    padding: 2em;
    }

    Hope that this helps.

    Thread Starter HeroicSlinky

    (@heroicslinky)

    Seems to just have been a glitch, PDF’s are now viewable.

    Thread Starter HeroicSlinky

    (@heroicslinky)

    Changed the theme and reset the permalink structure this seems to be fixed now.

    Thread Starter HeroicSlinky

    (@heroicslinky)

    Was able to figure out both problems. For my main problem where the posts that were not showing up under both of the authors. By including the get_post_taxonomies function in the posts arguments array this seems to have fixed that main problem problem.:

    <?php $author_args = array(
    	'offset'                    =>  0,
    	'orderby'                 =>  'post_date',
    	'order'                     =>  'DESC',
    	<strong>'include'                  =>  get_post_taxonomies( 'author' ),</strong>
    	'author'                   =>  $contributor_id,
    	'post_type'              =>  'post',
    	'post_status'           =>  'publish',
    	'posts_per_page'    =>  -1,
    	'suppress_filters'     =>  true,
    );
    
    // Gets the posts for each contributor.
    $posts = get_posts( $author_args );
    
    if ( $posts ):
    	foreach ( $posts as $post ) : setup_postdata( $post );
    
    		// post information here
    
    	endforeach;
    endif; ?>

    For the second problem with the duplication of the co-authors was solved by doing this,
    although this could be improved upon:

    <?php if ( $posts ):
    	foreach ( $posts as $post ) : setup_postdata( $post );
    		// Setting up the coauthors variable
    		$coauthors = get_coauthors();
    
    		// Counter for the coauthors foreach loop below
    		$coauth = 0;
    
    		// Counting the number of objects in the array.
    		$len = count( $coauthors );
    
    		echo '<div class="post">';
    			// Meta data here...
    
    			foreach( $coauthors as $coauthor ):
    				// Updating the counter.
    				$coauth++;
    
    				// Getting the data for the current author
    				$userdata = get_userdata( $coauthor->ID );
    
    				// If one object in the array
    				if ( $coauth == 0 ):
    					// Just the authors name
    					echo $userdata->display_name;
    				// If more than one object in the array
    				elseif ( $coauth >= 1 ):
    					// Adding a "comma" after the name
    					echo $userdata->display_name . ', ';
    				// If last object in the array
    				elseif ( $coauth == $len - 1 ):
    					// Adding an "and" before the last object
    					echo ' and ' . $userdata->display_name;
    				endif;
    			endforeach;
    
    			// More meta data here...
    		echo '</div>';
    	endforeach;
    endif; ?>

    Hope that this helps someone else out in the future if they have a similar problem!!

    Thread Starter HeroicSlinky

    (@heroicslinky)

    I now believe that the problem for my multisite rss feeds not working correctly is that there is something wrong in the permalink structure if the URL’s are set to the /postname option as they seem to work and correctly function under the default structure option if I don’t have my custom theme turned on. Looking into what is interfering with the permalinks.

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