Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter eiffel1974

    (@eiffel1974)

    I try, but it doesn’t change the name from Management-Human Resources to Human Resources and it doesn’t exclude some category.

    Thread Starter eiffel1974

    (@eiffel1974)

    Any Idea?

    Thread Starter eiffel1974

    (@eiffel1974)

    Non it didn’t display “Categories:”

    Here is the fulle code of the page:

    <?php
    $magazineCategories = array('Concessionnaires','Parcs','Pneus','Mécanique','Carrosserie');
    $magazines = array( 'AutoJournal','CamAuto', 'Pneu Mag','Le Garagiste', 'Le Carrossier',);
    $magazineNumber = array(12,11,10,8,9); ;
    
    for($x=0; $x<=4; $x++):
    $magazineLink = strtolower(str_replace(' ','',$magazines[$x]));
    if($magazineLink == 'autojournal')
    	$magazineLink = 'autojournalfr';
    
    $magazine = $wpdb->get_results("select * from aSphCa_".$magazineNumber[$x]."_posts where post_status='publish' and post_type='post' order by post_date desc limit 3");
    $i = 1;
    ?><br />
    	<h3 class="blue"><a href="/<?php echo $magazineLink; ?>/"><?php echo strtoupper($magazineCategories[$x]).' > '.$magazines[$x]; ?></a></h3>
    <div class="block">
    
    	<?php foreach($magazine as $entry):
    	if($i == 1):
    	?>
    
    	<?php $i=$i+1; break; endif; endforeach; ?>
    	<div class="rightn">
                     <div style="background:url(<?php bloginfo('template_directory');?>/images/puce_fleche.png);background-repeat:no-repeat;background-position:right bottom;height:90px;width:310px;">
    		<ul>
    
    <?php
    echo mysql2date('(j/m/y)', $entry->post_date);
    
    ?>
    <a href="<?php echo "/"."$magazineLink/$entry->post_name"; ?>"><?php echo getImage($entry->post_content); ?></a>
    					<h2><a href="<?php echo "/"."$magazineLink/$entry->post_name"; ?>" style="color: #263b51;"><?php echo $entry->post_title; ?></a></h2>
    <hr /></div><br />
    			<?php foreach($magazine as $entry):
    			if($i != 1):
    				if($i == 2) { $i=$i+1; continue; }
    			?><div style="background:url(<?php bloginfo('template_directory');?>/images/puce_fleche.png);background-repeat:no-repeat;background-position:right center;height:75px;width:310px;">
    				<li style="list-style-type: none">
    					<div class="righthumb">
    						<h2><a href="<?php echo "../$magazineLink/$entry->post_name"; ?>"><?php echo getImage($entry->post_content); ?></a></h2>
    					</div>
    					<div class="rightcont">
    
    <?php
    echo mysql2date('(j/m/y)', $entry->post_date);
    
    ?><a href="<?php echo "../$magazineLink/$entry->post_name"; ?>">
    					<?php
    $title  = $entry->post_title;
    if(strlen($title) > 55):
        echo trim(substr($title, 0, 55)).'[...]';
    else:
    echo $title;
    
    endif;
    ?>
    </a>
    
    					</div><div style="clear:both;"></div> <div style="clear:both;"></div>
    				</li><hr />
    			<?php $i=$i+1; endif; endforeach; ?></div></ul>
    	</div><br>
    </div><div style="clear:both;"></div>
    <?php endfor; ?>
    <!-- END -->
    
    	<?php wp_reset_query(); ?>

    Thanks

    Thread Starter eiffel1974

    (@eiffel1974)

    I try, but there is nothing display except for the title ans the date…so no category display.

    Thread Starter eiffel1974

    (@eiffel1974)

    This function only hide de HTML tab.

    Since the page template is only for custom field I don’t want to the Contributor to be able to write into the tinymce.

    Thanks

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