WordPress.org

Forums

[resolved] Fields added to query with posts_fields filter not returned (2 posts)

  1. vtxyzzy
    Member
    Posted 2 years ago #

    In earlier versions of WP I was able to add fields to the query using the posts_fields filter and they could be retrieved in the Loop using $post->myfieldname.

    That does not seem to be the case now. Any fixes or workarounds?

  2. vtxyzzy
    Member
    Posted 2 years ago #

    My mistake!! A second filter was active which removed the fields from the first.

Topic Closed

This topic has been closed to new replies.

About this Topic