Wordpress Discussion
Wordpress Discussion
Out of context: Reply #6
- Started
- Last post
- 174 Responses
- ********0
something like this:
$current_postID = $post->ID;
if($randID == $current_postID ){}
else{
$temp_title = get_the_title($post->ID);
$temp_link = get_permalink($post->ID);
$img_url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
}- $randID would be the ID of the related post from the loop********
- I just used a dummy variable for you to replace with the actual function********
- if you send me the actual script so I can test it I can make it work********
- Thank you! have posted below.fadein11
- $randID would be the ID of the related post from the loop