Custom field search

Forums › Forums › Search & Filter Pro › Custom field search

Tagged: 

Viewing 10 posts – 1 through 10 (of 12 total)
  • Anonymous
    #76218

    Hi,

    I installed Your plugin to my test page to get familiar with it. I want to use Your plugin to create lists of posts with custom data.

    I have build a search form and used Post Meta field with date range and Meta Keys for UI to show the list of posts. But unfortunately I can’t get the results I need. I use custom field in my posts to show the dates of trips (it is a travel site).

    Can You help me out? Let me know if You need more information.

    Thank You.

    Trevor
    #76243

    Are you able to show me the search URL you have built, and what date data does the post hold and what input do you want the user to make?

    Anonymous
    #76249

    Hi,

    The search results are here http://kontiki.convertonline.ee/otsingud/
    I want that the user can filter the posts within date range. But if you insert any date range – no results found.
    I think, that I have something wrong in admin, but I can’t figure it out.

    Trevor
    #76303

    The fields that hold the dates, are they ACF dates or another type of custom field? It is important that the date are stored in a way that our search can filter. So, today might be 14/12/2016 but it needs to be 20161214 when stored.

    Anonymous
    #76446

    Hi Trevor, Thank You for Your help. I still have problems with my settings (I think).
    I added some screenshots to better explain it. And I do not use ACF.

    1. Search results
    Result
    2. Custom Field
    Custom Field
    3. Search Settings
    Search Settings

    Anonymous
    #76448

    Sorry,
    Settings screenshot missing:
    Settings

    Trevor
    #76481

    Are you able to look into the WP Database and the Post Meta table to see how they are stored? If they are like 2016-12-25 I do not think that this will work.

    The screenshots show you defining the fields. What plugin is this that you are using? Is it Custom Content Manager? If so, I think that is withdrawn from the WP plugin repository for being unsafe. What different data format saving options does it give you? I can see mySQL yyyy-mm-dd

    The one I use in ACF is the jquery yymmdd format (which saves as 20161225).

    Anonymous
    #76550

    Hi,

    Thank You for Your reply.
    No, I can’t get to database and yes this is CCTM plugin which is clean after the new release.
    And data format saving options are:
    Default mm/dd/yy
    MySQL yyyy-mm-dd
    Short d M,y
    Medium d MM, y, Full DD ,d MM, yy
    With Text ‘day’ d ‘of’ MM ‘in the year’ yy

    Trevor
    #76554

    If you download and install this plugin (do NOT leave it activated after use):

    https://downloads.wordpress.org/plugin/adminer.1.4.5.zip

    It should let you view the database, open the post met table and search for a post id that you know has a date saved and look to see what is saved.

    Anonymous
    #77253

    ThanK You for Your time. I figured out how to solve this.

Viewing 10 posts – 1 through 10 (of 12 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.