Forum Replies Created

Viewing 12 Topics - 1 through 12 (of 12 total)
Author Posts
March 22, 2014 at 4:46 am in reply to: Show Images in post 17068
onafets onafets

Or there is a way to reset options to default?

March 21, 2014 at 6:03 pm in reply to: Show Images in post 17043
onafets onafets

I am not sure I understand.

1-this is into my single-posttype.php

<?php echo get_post_meta( $post->ID, ‘images’, true ); ?>

2-this is into my function.php

$images = get_post_meta( $post->ID, ‘mey_key_name’ );

if ( $images ) {
foreach ( $images as $attachment_id ) {
$thumb = wp_get_attachment_image( $attachment_id, ‘thumbnail’ );
$full_size = wp_get_attachment_url( $attachment_id );

printf( ‘%s‘, $full_size, $thumb );
}
}

What I got is a number that appears at the bottom of the post

July 5, 2013 at 4:19 pm in reply to: You Tube Link 5621
onafets onafets

Sorry, I don’t think to follow, do you mean this:

I have this doubt, shall I create a new custom post type or is the plugin wp youtube lyte that makes all of it

July 5, 2013 at 4:16 pm in reply to: .standard-form span.label 5620
onafets onafets

Thank you I have solved, Basically I had in my single.php that css line on the top of everything.
Is a mistake I have made.
Sorry for wasting your time

July 5, 2013 at 3:16 pm in reply to: You Tube Link 5617
onafets onafets

sorry, I need to get this thing work,

this is what I append to my function.php

function wpuf_youtubeid( $post_id ) {
$tubeid =  get_post_meta( $post->ID, ‘youtubeid’, true ); // The parameter name 
$newTubeid = $tubeid;// appending the values
}

and this in my single.php
<?php echo wp_oembed_get( get_post_meta($post->ID, 'you_tube_link', true) ); ?>

In the form I add a custom TEXT FIELD for the youtube id

Is it all right?
It doesn’t work for me.

July 5, 2013 at 2:28 pm in reply to: .standard-form span.label 5616
onafets onafets

I have made a test, deleted all my custom css but the line still exist at the top left, right before the header, of the pages created with the Form.
Unfortunately I can’t show the website as is protected by confidentiality and copyright by the client.

June 28, 2013 at 2:43 pm in reply to: Google map in widget? 5386
onafets onafets

Thank you, Tareq. I have tested but it doesn’t fetch the map

onafets onafets

I have a doubt, in the snipped:
how can I modified in order to appear for a custom post, I mean I have a portfolio item witch is called pt_item.

function wpuf_pronamic_location( $post_id ) {
    $custom_field = 'address';
 
    if ( !class_exists('Pronamic_Google_Maps_Post') ) {
        return;
    }
 
    if ( isset( $_POST[$custom_field] ) ) {
        $address = $_POST[$custom_field];
 
        list( $def_lat, $def_long ) = explode( ',', $address );
 
        if ( $def_lat ) {
            update_post_meta( $post_id, Pronamic_Google_Maps_Post::META_KEY_LATITUDE, $def_lat );
        }
 
        if ( $def_long ) {
            update_post_meta( $post_id, Pronamic_Google_Maps_Post::META_KEY_LONGITUDE, $def_long );
        }
 
        if ( $def_lat && $def_long ) {
            update_post_meta( $post_id, Pronamic_Google_Maps_Post::META_KEY_ACTIVE, true );
        }
    }
}
 
add_action( 'wpuf_add_post_after_insert', 'wpuf_pronamic_location' );
add_action( 'wpuf_edit_post_after_update', 'wpuf_pronamic_location' );
June 25, 2013 at 10:39 am in reply to: Search form? 5207
onafets onafets

For example,
I have a job seeker website.
I want to add a search form to fetch jobs form external job websites.
If I write “accountant” and “london” the result will be the jobs listing from few external, previouly pointed, websites

June 3, 2013 at 2:53 pm in reply to: Gallery snipped 4467
onafets onafets

Solved thanks

June 1, 2013 at 2:24 pm in reply to: Pronamic Google Maps action hook 4404
onafets onafets

jeremy.debost

can you please share the whole snippet?
thank you in advance

onafets onafets

ok, done with the map, it’s appears but is somewhere in the ocean, not the coordinates I gave when I have submitted the post.

Regarding the gallery, which I suppose is a custom field, theoretically if I get the custom field’s names I can pull them up in some way on the front end post, am I right?

Can you show me how can I pull the custom fields on the front end post?

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