WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can anybody change this code for me? (2 posts)

  1. mitchrenton
    Member
    Posted 5 years ago #

    This is a snippet of code i'm using that gets a custom field from that the page its on:

    $wp_query->post->ID

    I want to change it so that it displays a custom field from a particular page. ie. post ID('3')

    I've tried a load of things and just can't get it, sorry for the pitiful php abilities!!

    If somebody could put me out of my misery I'd be a happy man

    Mitch

  2. esmi
    Forum Moderator
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic