Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
For questions about the server-side programming language that the WordPress core, plugins and themes are written in. Questions about using PHP outside a WordPress context are off-topic but might be asked on Stack Overflow.
1
vote
1
answer
66
views
If Query In Sidebar
php
global $wp_query;
$postid = $wp_query->post->ID;
echo get_post_meta($postid, 'FeaturedQuote', true);
wp_reset_query();
? … php
global $wp_query;
$postid = $wp_query->post->ID;
echo get_post_meta($postid, 'InsertFullImg', true);
wp_reset_query();
?>">
I cant get it right!
Thanks …
0
votes
1
answer
196
views
Display Custom Field in Sidebar if Value is Present
php if(global $wp_query;
$postid = $wp_query->post->ID;
echo get_post_meta($postid, 'TourURL', true);
wp_reset_query();
): ?>
<P>Show Link</P>
<?php else : ? … php endif; ?>
Thanks! …
0
votes
2
answers
102
views
If Elseif Query
php if(get_post_meta($post->ID, 'TourURL', true)) {
<div class="tourenquiryonline">
<h2>Book or Inquire</h2>
This tour can be booked online. …
0
votes
3
answers
144
views
Pull Tags But Not as Links
php
global $wp_query;
$postid = $wp_query->post->ID;
echo get_the_term_list( $post->ID, 'visits', 'Visits ', ', ', ' ' );
wp_reset_query();
?>
Thanks …
0
votes
1
answer
42
views
Show a Category Specific Info Box
I have a number of categories which are regions of the country (north, south, etc).
I would like to display some kind of info box at the end of each post which falls into one of these categories wit …
0
votes
1
answer
1k
views
Woocommerce Price Text
I'm trying to show after the price of my product, whether the price is 'per person' or 'per group'.
I've created a custom field for both, so for example, if custom field 'price_per_person' is ticked, …