Forum Replies Created

Viewing 6 Topics - 1 through 6 (of 6 total)
Author Posts
September 8, 2014 at 2:41 pm in reply to: Conditional statement for dropdown 26460
Olivier Olivier

Finally found the solution, I add it bellow in case it can help someone,
It’s working now with the following :

ID, ‘what’, true);

if($value == ‘1’) {
echo ‘test 1’;
} else {
echo ‘Nothing’;
}

?>

Thanks,

Olivier

September 7, 2014 at 6:40 pm in reply to: Retrieve info from registration form for post author 26423
Olivier Olivier

Hi Sekander, thanks and sorry for the stupid question…

September 7, 2014 at 3:38 pm in reply to: Conditional statement for dropdown 26397
Olivier Olivier

Hi Sekander, thanks for the answer,

Basically here is the screenshot of the form, with the dropdown statement called “what” :
conditional

I want to display different things on the article page created if the user has selected the option 1, 2, 3 or 4 (values of the dropdown), on the above code, its is just an example with the “echo”,

But I don’t succeed checking which value of the dropdown the user has selected when he created the post,

Hope this is clear enough, let me know otherwise,

Thanks in advance,

Olivier

September 4, 2014 at 7:16 pm in reply to: google map for category posts 26314
Olivier Olivier

Thanks,
Manages doing it at the end,

Olivier

September 3, 2014 at 7:13 pm in reply to: google map for category posts 26255
Olivier Olivier

Hi,
Thanks for the answer,
unfortunatly it doesnt solve the issue,
The thing is that by calling the map in the theme :
ID ); ?>
It loaded the special ID from the post ($post->ID), what I would like is that it can load an array of ID instead of just one, do you think it is possible ?
In case not, how can I extract the latitude and longitude as numbers written in php ?
Thanks in advance,
Olivier

September 3, 2014 at 2:43 pm in reply to: google map for category posts 26224
Olivier Olivier

As a test, I’ve tried in this direction but without success for exemple to retrieve all the locations from posts within category 2 … :


<?php 
$post_ids = get_posts(array(
    'numberposts'   => -1, 
    'tax_query'     => array(
        array(
            'taxonomy'  => 'category',
            'field'     => 'id',
            'terms'     => 2,
        ),
    ),
    'fields'        => 'ids', 
));

echo wpuf_shortcode_map( 'location', $post_ids ); ?>

Do someone has an idea how I can achieve that ?

Viewing 6 Topics - 1 through 6 (of 6 total)