WordPress.org

Forums

Advanced Custom Fields
Filter pages by custom field (2 posts)

  1. RobinWebber
    Member
    Posted 1 year ago #

    Hi there,

    I've a question about filtering pages by a custom field. I've made a custom select field with a list of countries. What I'm trying to do is showing some pages only in specific countries. For example, if on a page the custom select field "France" is selected, I would like to show this page only if a person enters the site from France. I can figure out how to get this variable from the users side, but I can't figure out if it's possible to filter the pages before showing up in the frontend by a custom field, maybe with a specific function inside functions.php?

    Hopefully somebody knows how to do this. Thank you in advance!

    Kind regards, Robin

    http://wordpress.org/plugins/advanced-custom-fields/

  2. zaptest
    Member
    Posted 1 year ago #

    I am also having same kind of trouble.
    my client wants to have a filtering functionality in my site.
    But i am confused how to deliver this.

    Can you provide some kind of guidance.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags