Help with php code - need to add condition to make one link https

Posted by Kaskade on Stack Overflow See other posts from Stack Overflow or by Kaskade
Published on 2010-03-30T15:09:19Z Indexed on 2010/03/30 15:13 UTC
Read the original article Hit count: 367

Filed under:
|
|
|

Hi,

I have a wordpress blog and I need to make one of the pages secure. I have been told to make the link to that page point to https://claimpage.html as opposed to http://claimpage.html.

The problem is I don't actually create the menu that links the user to the individual pages. This is done automatically by the code in the background. I think I need to put in some sort of an IF statement, saying, if the title of the page is "claim now" then use https otherwise use http.

I found this code in the header.php so I think my changes need to go in here but I'm not really sure what to do.

     <div id="navbar">

  <ul class="menu">

   <li class="<?php if ( is_home() ) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>"><?php _e('Home'); ?></a></li>

   <?php wp_list_pages('sort_column=id&depth=1&title_li='); ?>

   <?php wp_register('<li>','</li>'); ?>

  </ul>



 </div> <!-- end of #navbar -->

Any suggestions as to how I can make one page that I know the title and url or https while the others are kept using normal http?

The site is hosted on a secure server so I do have an ssl certificate.

© Stack Overflow or respective owner

Related posts about php

Related posts about https