Support » Fixing WordPress » Using wp_query to show a random post from a specific category

  • Hi I need some help with a wp_query script. Here’s what I need to do.

    1: Make an array of all the posts from the ‘Events’ category that have a value in the ‘articleimg’ cutsom field.

    2: Return the value of the ‘articleimg’ custom field, and print it inside a IMG tag.

    3: Print the title value of the selected post, and permalink it.

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using wp_query to show a random post from a specific category’ is closed to new replies.