Jump to content

Wordpress issue, can someone help me?


Divvy

Recommended Posts

Hello guys,

 

Can someone help me with my problem?

I need the boxes towards the bottom of the page to link to proper pages that have to do with subject instead of catatories:

www.loyalforex.com/wp

 

The first three links are correct, but the 3 links above are not:

http://i.imgur.com/urUP5.png

 

This is the correct links that I need:

 

why trade forex, 
http://loyalforex.com/wp/about-us/ 

Leverage 
http://loyalforex.com/wp/forex-trading/account-types/ 

affilate 
http://loyalforex.com/wp**********

web trader 
http://loyalforex.com/wp/web-trader-platform/

metatrader 
http://loyalforex.com/wp/metatrader-platform/

deposit 
http://loyalforex.com/wp/deposit/

 

This is the file that I'm edit:

http://paste2.org/p/2031111

 

This is some part of the code above:

 

 

<div class="article-image">
                        
							<?php if (has_post_thumbnail()) : ?>
   <?php if (in_category('Affiliates')){ ?>
<a class="darken" href="<?php bloginfo('url') ?>**********">
<?php  }elseif (in_category('News')){ ?> 
<a class="darken" href="<?php bloginfo('url') ?>/about-us/">
<?php }elseif(in_category('Partners')){ ?>
<a class="darken" href="<?php bloginfo('url') ?>/news/why-trade-forex/">
<?php } elseif(in_category('Metatrader')){ ?>
<a class="darken" href="<?php bloginfo('url') ?>/metatrader-platform/">
<?php } elseif(in_category('Technology')){ ?>
<a class="darken" href="<?php bloginfo('url') ?>/forex-trading/account-types/">
<?php }elseif(in_category('Deposits')){ ?>
<a class="darken" href="<?php bloginfo('url') ?>/deposit/">
<?php }elseif(in_category('Webtrader')){ ?>
<a class="darken" href="<?php bloginfo('url') ?>/web-trader-platform/">
								<?php } else { ?>

							<a class="darken" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
                                <?php } ?>

                                        <?php the_post_thumbnail('feed', array( 'title'	=> '' )); ?>
                                        
                                    </a>
                                    
                                <?php else: ?>
                                
                                    <div class="article-image-placeholder"> </div>
                                
                                <?php endif; ?>
                                
                            </div>

 

 

<div class="content">

							<h2 class="adelle">
   <?php if (in_category('Affiliates')){ ?>
<a class="post-title" href="<?php bloginfo('url') ?>**********">
<?php  }elseif (in_category('News')){ ?> 
<a class="post-title" href="<?php bloginfo('url') ?>/about-us/">
<?php }elseif(in_category('Partners')){ ?>
<a class="post-title" href="<?php bloginfo('url') ?>/news/why-trade-forex/">
<?php } elseif(in_category('Metatrader')){ ?>
<a class="post-title" href="<?php bloginfo('url') ?>/metatrader-platform/">
<?php } elseif(in_category('Technology')){ ?>
<a class="post-title" href="<?php bloginfo('url') ?>/forex-trading/account-types/">
<?php }elseif(in_category('Deposits')){ ?>
<a class="post-title" href="<?php bloginfo('url') ?>/deposit/">
<?php }elseif(in_category('Webtrader')){ ?>
<a class="post-title" href="<?php bloginfo('url') ?>/web-trader-platform/">
								<?php } else { ?>

							<a class="post-title" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
                                <?php } ?>

							<?php the_title(); ?></a></h2>

 

<div class="fullstory">
                            
                            	<?php if($isreview) { ?>
                                
                                	<a href="<?php the_permalink(); ?>"><?php _e( 'Full Review', 'continuum'); ?> »</a>
                                
                                <?php } else { ?>
						 <?php if (in_category('Affiliates')){ ?>
<a href="<?php bloginfo('url') ?>**********">
<?php  }elseif (in_category('News')){ ?> 
<a href="<?php bloginfo('url') ?>/about-us/">
<?php }elseif(in_category('Partners')){ ?>
<a href="<?php bloginfo('url') ?>/news/why-trade-forex/">
<?php } elseif(in_category('Metatrader')){ ?>
<a href="<?php bloginfo('url') ?>/metatrader-platform/">
<?php } elseif(in_category('Technology')){ ?>
<a href="<?php bloginfo('url') ?>/forex-trading/account-types/">
<?php }elseif(in_category('Deposits')){ ?>
<a href="<?php bloginfo('url') ?>/deposit/">
<?php }elseif(in_category('Webtrader')){ ?>
<a href="<?php bloginfo('url') ?>/web-trader-platform/">
								<?php } else { ?>

							<a href="<?php the_permalink(); ?>">
                                <?php } ?>
								<?php _e( 'Full Story', 'continuum'); ?> »</a>
                                
                                <?php } ?>

						</div>

 

 

Can someone please help me? :-)

What Im doing wrong!?

 

Regards,

Divvy

Link to comment
https://forums.phpfreaks.com/topic/262939-wordpress-issue-can-someone-help-me/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.