WordPress.org

Ready to get started?Download WordPress

Forums

Pitch
[closed] Project archive page (16 posts)

  1. joemerchant2
    Member
    Posted 1 year ago #

    I'm trying to add a project archive page, like in the demo example, that shows all the project thumbnails. I have tried creating a page based on the project archive template in the dropdown menu but that doesn't work. What am I missing?

    http://wordpress.org/extend/themes/pitch/

  2. sui_page
    Member
    Posted 1 year ago #

    hey did you end up finding the solution. All the page templates work except the 'project archive' one. Is there a shortcode i have to add or something?

  3. lucaswade
    Member
    Posted 1 year ago #

    Were you able to resolve your issue? I am attempting to do the same but I am not able to update through this template. The only thing i see is some slug text underneath the project title. It doesn't show a thumbnail or my list of projects.

  4. danielpdesign
    Member
    Posted 1 year ago #

    In loop-projects.php just before this:

    <?php if(have_posts()) : ?>

    add this:

    <?php
    if($GLOBALS['pitch_theme_settings']['type_client']){
    	$GLOBALS['home_loop_title'] = $GLOBALS['pitch_theme_settings']['home_title_clients'];
    	$GLOBALS['home_loop_all'] = false;
    	query_posts(array(
    		'post_type' => 'project',
    	));
    ?>

    .....then paste this at the very end:

    <?php
    wp_reset_query();
    }
    ?>

    Hope this helps

    Danielp

  5. lucaswade
    Member
    Posted 1 year ago #

    It works. Thanks for your help.

  6. myersm89
    Member
    Posted 1 year ago #

    This worked for me as well. Thanks a lot man!

  7. danielpdesign
    Member
    Posted 1 year ago #

    No problem, glad to help. It's an excellent theme!

  8. marc972
    Member
    Posted 1 year ago #

    Hi Danielpdesign! great fix!

    This fix only shows 10 of the projects I uploaded; is there anyway to show all 20?

  9. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 1 year ago #

    Marc972, please create your own thread for support with your own issues.

  10. danielpdesign
    Member
    Posted 1 year ago #

    Add a new line after 'post_type' => 'project',
    And put this (where 20 is the mumber of projects you want to sure):
    'posts_per_page' => 20,
    Give that a whirl.
    Dan

  11. danielpdesign
    Member
    Posted 1 year ago #

    #Apologies for the topos, using my phone to reply.

  12. marc972
    Member
    Posted 1 year ago #

    Sorry for the delayed response; we were having issues with out hosting but it is all resolved now.

    your posts_per_page worked! thanks so much, danielpdesign!

  13. cyzek86
    Member
    Posted 1 year ago #

    Hello,

    I've tried following your solution danielpdesign. My loop-projects.php looks like that now:

    <?php
    if($GLOBALS['pitch_theme_settings']['type_client']){
    	$GLOBALS['home_loop_title'] = $GLOBALS['pitch_theme_settings']['home_title_clients'];
    	$GLOBALS['home_loop_all'] = false;
    	query_posts(array(
    		'post_type' => 'project',
    		'posts_per_page' => 20
    	));
    ?>
    
    <?php if(have_posts()) :  ?>
    	<div id="projects" class="loop-projects">
    		<?php while(have_posts()) : the_post(); ?>
    			<div <?php post_class() ?>>
    				<div class="wrapper">
    					<a href="<?php the_permalink() ?>" class="image">
    						<?php echo get_the_post_thumbnail(null, 'portfolio', array('class' => 'preload')); ?>
    					</a>
    					<div class="overlay">
    
    					</div>
    					<a href="<?php the_permalink() ?>" class="info">
    						<h3><?php the_title() ?></h3>
    						<p><?php echo siteorigin_setting('project_view_text', __('View Project', 'pitch')) ?></p>
    					</a>
    				</div>
    			</div>
    		<?php endwhile ?>
    		<div class="clear"></div>
    	</div>
    <?php elseif (siteorigin_setting('general_demo_mode')) : get_template_part('demo/loop', 'projects') ?>
    <?php endif; ?>
    <?php
    wp_reset_query();
    }
    ?>

    but it still doesn't seem to work:

    link

    projects don't show up. Any ideas?

  14. marc972
    Member
    Posted 1 year ago #

    Hi danielpdesig,

    I updated to the latest version of Pitch however the fix you gave me to show more projects on the Archive page above no longer works.

    My company is in the middle of an advertising campaign and urgently need a fix.

    Thank you very much,
    Marc

  15. Dawrani
    Member
    Posted 9 months ago #

    Hello

    I am working with Pitch and i wanted to know that is their any way by which we can redirect user to certain page rather than show user the project description.

    Thanks!

  16. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    @Dawrani: As per the Forum Welcome, please post your own topic instead of posting in a 10 month old topic about a different issue that references an older version of WordPress.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags