Find Jobs
Hire Freelancers

Create Conditional IF / ELSE Statement For WordPress Single Post Theme Page

$10-30 USD

Closed
Posted almost 9 years ago

$10-30 USD

Paid on delivery
I need this code (which is already in theme) to NOT RUN if post=172: ===================================== <div class="block block-views last even" id="block-views-practice_areas-block_2"> <div class="block-wrapper"> <h2 class="title block-title">Other Topics</h2> <div class="horizontal_rule_fill"></div> <?php $args=array( 'cat' => 7, 'orderby' => rand, 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 4, 'caller_get_posts'=> 4 ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?> <div class="last"> <div class="ds-1col node node-practice-area node-teaser view-mode-teaser margin-bottom-30 clearfix"> <a class="practice-area-wrap" href="<?php the_permalink(); ?>"> <div class="field field-name-field-practice-areas-image"> <!--[if IE 9]><video style="display: none;"><![endif]--> <source media="(min-width: 768px)"> <source media="(min-width: 400px)"> <source media="(min-width: 0px)"> <img src="<?= $feat_image; ?>"> </div> <div class="group-info field-group-div"> <h5><? the_title(); ?> </h5> <div class="desc"> <?php echo get_the_excerpt(); ?> </div> </div></a> </div> </div> <?php endwhile; } wp_reset_query(); // Restore global post data stomped by the_post(). ?>
Project ID: 8220808

About the project

19 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
19 freelancers are bidding on average $28 USD for this job
User Avatar
Sir, I have 7+ years experience in web development and wordpress. please check this code i have added if condition if(get_the_ID()!=172){ $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?> <div class="last"> <div class="ds-1col node node-practice-area node-teaser view-mode-teaser margin-bottom-30 clearfix"> <a class="practice-area-wrap" href="<?php the_permalink(); ?>"> <div class="field field-name-field-practice-areas-image"> <!--[if IE 9]><video style="display: none;"><![endif]--> <source media="(min-width: 768px)"> <source media="(min-width: 400px)"> <source media="(min-width: 0px)"> <img src="<?= $feat_image; ?>"> </div> <div class="group-info field-group-div"> <h5><? the_title(); ?> </h5> <div class="desc"> <?php echo get_the_excerpt(); ?> </div> </div></a> </div> </div> <?php } Looking for your next response. Thanks
$15 USD in 1 day
5.0 (54 reviews)
6.8
6.8
User Avatar
Hello Let's explore the requirement and kindly let us know if you would like us to share our skills & experiences with previous development. Thanks & Regards moumita
$126 USD in 3 days
4.7 (197 reviews)
7.3
7.3
User Avatar
Dear Sir. We claim to get it done perfectly for you EXACTLY in the way you want it - Kindly give we a chance and we will prove myself - Ready to prove our words, let's get it done right away and I mean RIGHT AWAY !! Looking forward to hear from you soon - GOD Bless You.
$45 USD in 1 day
4.9 (185 reviews)
6.8
6.8
User Avatar
Hello Sir, We have checked your job detail and as per that we are able to do your job and we have very good experience in WordPress Regards, Pinakin
$25 USD in 0 day
4.9 (171 reviews)
6.5
6.5
User Avatar
Hi, Can do it within an hr. Regards, Siddhartha
$25 USD in 0 day
4.8 (114 reviews)
6.3
6.3
User Avatar
I have 4 years experience with wordpress,codeigniter,custom php , jQuery ect. I have completed lots of website and fixed lots of issues. I can work now for you. Please come on chat we can discuss for this project details. Thanks
$12 USD in 1 day
5.0 (81 reviews)
6.1
6.1
User Avatar
A proposal has not yet been provided
$15 USD in 1 day
5.0 (37 reviews)
6.0
6.0
User Avatar
Hi, I can write the conditional station as you like based on Post Id with in an hour or so. thanks, Sanjeev
$15 USD in 1 day
4.9 (151 reviews)
6.3
6.3
User Avatar
I'm guessing here that this is in the single post template? Using an if statement that calls the is_single() function to see if post 172 is being displayed should work. I've done this thousands of times over the years and can definitely help you with this. I have 10+ years development experience with Wordpress. 15+ years development experience with PHP, MySQL and Javascript. Wrote my first web page way back in 1995. I have the experience you need to get this done efficiently and quickly. Thanks, -Dave
$30 USD in 1 day
5.0 (100 reviews)
5.8
5.8
User Avatar
Hello Sir, We already worked together. We can do your task. We are very good team with very good experience of more then 3 years in PHP,Wordpress,WooCommerce,Twitter Bootstap,HTML,HTML5,MySQL,CSS,CSS3,J-Query,JavaScript,PSD to HTML etc.. We ensure that we will complete your task. Thanks and Regards HighFlexTech and Team
$19 USD in 0 day
5.0 (87 reviews)
5.9
5.9
User Avatar
Hello , I have worked on similar projects like this and can do this task for you. I am ready to start immediately and can complete this in few hours. Please let me know if you want me to get it started. Thank you.
$15 USD in 0 day
4.8 (28 reviews)
4.7
4.7
User Avatar
I am web developer with 7 years of experience. I am from Lithuania, Central Europe. I have worked with over 120 clients and 300 projects. Hope we can work together!
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Currently i am working as a wordpress developer and I worked on so many projects of wordpress And I can solve your problem
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$25 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Dear sir, I have done this a 100 times. so it is just 30 mins work for me. please give me a chance to prove myself. My Skype id is 'mehtabakram'. i m waiting for your response.
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Avondale, United States
5.0
26
Payment method verified
Member since Oct 15, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.