Find Jobs
Hire Freelancers

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

$10-30 USD

Lezárt
Kiadva ekkor: több mint 8 évvel ezelőtt

$10-30 USD

Teljesítéskor fizetve
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(). ?>
Projektazonosító: 8220808

A projektről

19 ajánlat
Távolról teljesíthető projekt
Aktiválva: 9 évvel ezelőtt

Szeretne pénzt keresni?

A Freelancer oldalán történő árajánlatadás előnyei

Határozzon meg költségvetést és időkeretet
Kapja meg fizetését a munkáért
Vázolja ajánlatát
Ingyen regisztrálhat és adhat árajánlatot munkákra
19 szabadúszó adott átlagosan $28 USD összegű árajánlatot erre a munkára
Felhasználó avatár
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 1 napon belül
5,0 (54 értékelés)
6,8
6,8
Felhasználó avatár
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 3 napon belül
4,7 (197 értékelés)
7,3
7,3
Felhasználó avatár
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 1 napon belül
4,9 (185 értékelés)
6,8
6,8
Felhasználó avatár
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 0 napon belül
4,9 (171 értékelés)
6,5
6,5
Felhasználó avatár
Hi, Can do it within an hr. Regards, Siddhartha
$25 USD 0 napon belül
4,8 (114 értékelés)
6,3
6,3
Felhasználó avatár
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 1 napon belül
5,0 (81 értékelés)
6,1
6,1
Felhasználó avatár
A proposal has not yet been provided
$15 USD 1 napon belül
5,0 (37 értékelés)
6,0
6,0
Felhasználó avatár
Hi, I can write the conditional station as you like based on Post Id with in an hour or so. thanks, Sanjeev
$15 USD 1 napon belül
4,9 (151 értékelés)
6,3
6,3
Felhasználó avatár
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 1 napon belül
5,0 (100 értékelés)
5,8
5,8
Felhasználó avatár
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 0 napon belül
5,0 (87 értékelés)
5,9
5,9
Felhasználó avatár
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 0 napon belül
4,8 (28 értékelés)
4,7
4,7
Felhasználó avatár
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 1 napon belül
0,0 (0 értékelés)
0,0
0,0
Felhasználó avatár
A proposal has not yet been provided
$25 USD 1 napon belül
0,0 (0 értékelés)
0,0
0,0
Felhasználó avatár
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 1 napon belül
0,0 (0 értékelés)
0,0
0,0
Felhasználó avatár
A proposal has not yet been provided
$25 USD 2 napon belül
0,0 (0 értékelés)
0,0
0,0
Felhasználó avatár
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 1 napon belül
0,0 (0 értékelés)
0,0
0,0

Az ügyfélről

UNITED STATES zászlója
Avondale, United States
5,0
26
Fizetési mód hitelesítve
Tagság kezdete: okt. 15, 2014

Ügyfél-hitelesítés

Köszönjük! E-mailben elküldtük a linket, melyen átveheti ajándék egyenlegét.
E-mailje elküldése során valami hiba történt. Kérjük, próbálja újra.
Regisztrált Felhasználók Összes Közzétett Munka
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Előnézet betöltése
Hozzáférést adott a helymeghatározáshoz.
Belépési munkamenete lejárt, és kijelentkeztettük. Kérjük, lépjen be újra.