Find Jobs
Hire Freelancers

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

$10-30 USD

Zamknięte
Opublikowano ponad 8 lat temu

$10-30 USD

Płatne przy odbiorze
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(). ?>
Identyfikator projektu: 8220808

Informację o projekcie

19 ofert
Zdalny projekt
Aktywny 9 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
19 freelancerzy składają oferty o średniej wysokości $28 USD dla tej pracy
Awatar Użytkownika
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 w 1 dzień
5,0 (54 opinii)
6,8
6,8
Awatar Użytkownika
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 w 3 dni
4,7 (197 opinii)
7,3
7,3
Awatar Użytkownika
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 w 1 dzień
4,9 (185 opinii)
6,8
6,8
Awatar Użytkownika
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 w 0 dzień
4,9 (171 opinii)
6,5
6,5
Awatar Użytkownika
Hi, Can do it within an hr. Regards, Siddhartha
$25 USD w 0 dzień
4,8 (114 opinii)
6,3
6,3
Awatar Użytkownika
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 w 1 dzień
5,0 (81 opinii)
6,1
6,1
Awatar Użytkownika
A proposal has not yet been provided
$15 USD w 1 dzień
5,0 (37 opinii)
6,0
6,0
Awatar Użytkownika
Hi, I can write the conditional station as you like based on Post Id with in an hour or so. thanks, Sanjeev
$15 USD w 1 dzień
4,9 (151 opinii)
6,3
6,3
Awatar Użytkownika
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 w 1 dzień
5,0 (100 opinii)
5,8
5,8
Awatar Użytkownika
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 w 0 dzień
5,0 (87 opinii)
5,9
5,9
Awatar Użytkownika
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 w 0 dzień
4,8 (28 opinii)
4,7
4,7
Awatar Użytkownika
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 w 1 dzień
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
A proposal has not yet been provided
$25 USD w 1 dzień
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
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 w 1 dzień
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
A proposal has not yet been provided
$25 USD w 2 dni
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
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 w 1 dzień
0,0 (0 opinii)
0,0
0,0

O kliencie

Flaga UNITED STATES
Avondale, United States
5,0
26
Zweryfikowana metoda płatności
Członek od paź 15, 2014

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.