• Resolved bit-web

    (@bit-web)


    Hello,
    I recently installed Pro add-on for Admin Columns because I need to create column sorting and especially filters at the top of items list.
    I have this problem:
    when I create a new item or delete it, the select filters does not update with the new values.

    Eg: I have set as a filter column City.

    I insert a new item with field city: London; it does not appear in filters select.
    I delete an existing item with field city:Rome; Rome still appears in the select.

    The values ​​are updated correctly only sometimes if I create a new item.
    But not everytime I add or delete field.

    Why?
    Thanks in advance.

    https://wordpress.org/plugins/codepress-admin-columns/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Jesper van Engelen

    (@engelen)

    Is “City” a taxonomy? In that case: Admin Columns does not automatically refresh the list of terms (available cities in your case). We will fix this in a future release. For now, you can fix this issue by simply saving a post (it’s not necessary to make any changes, just saving it is enough).

    Thread Starter bit-web

    (@bit-web)

    “City” is a custom field created by Advanced Custom Fields.
    The problem is present for any type of field I create.

    Thread Starter bit-web

    (@bit-web)

    I have seen that there is a reference to the deleted values (ex. city: Rome) ​​within the database table “option”(option name: _transient_….).

    If I save an existing item, anyway filters not update.
    Only if I put a value into the specific value of new item (city in my example), the filter update (and the row into the table “option” disappears).

    Plugin Author Jesper van Engelen

    (@engelen)

    With “item”, do you mean a post (or page, or a custom post type post)?

    Thread Starter bit-web

    (@bit-web)

    Sorry, I mean custom post type post.
    (I create a plugin that generate my own custom post type)

    Plugin Author Jesper van Engelen

    (@engelen)

    What version of Admin Columns and what version of the Pro Add-on are you using?

    Thread Starter bit-web

    (@bit-web)

    Admin Columns – Version 2.1.3
    Pro add-on – Version 1.0.7

    Thread Starter bit-web

    (@bit-web)

    Something new about my problem?
    Can be a cache problem?
    I have seen that there is a reference to the deleted values (ex. post with field city: Rome) ​​within the database table “option”(option name: _transient_….).

    Plugin Author Jesper van Engelen

    (@engelen)

    That’s very strange. In theory, the cache (the _transient-option you’re talking about) should empty itself on save_post. I’ll make sure to create a fallback for this in the next release of admin columns pro. A quick fix is to delete the _transient option containing the cities.

    Thread Starter bit-web

    (@bit-web)

    I have the same problem. When I delete or create a post, it’s not showed into filter column.
    Something new?

    Thread Starter bit-web

    (@bit-web)

    Hello,
    I tried to explore the pro addon plugin files and in the file post.php I tried to comment out the following lines:

    if( $cache = $column->get_cache( 'filtering' ) ) {
    $options = $cache['options'];
    $empty_option 	= $cache['empty_option'];
    }

    This seems to solve the problem.
    What means those lines? If I comment those lines, it might cause me problems?

    Thanks

    Same problem here with the newest version of PRO plugin

    I’m still having this issue. In fact, I even changed field names and now I can’t get any filters to show up I think because it’s still trying to load the old field names that I’ve deleted.

    Admin Columns Pro 3.0.8.2

    Plugin Author Tobias Schutter

    (@tschutter)

    It seems that the caching is not being stored properly, perhaps the number of options is too large, not sure. I would really like to have a look at your install to see what the problem is. Could you perhaps send me a PM at info@admincolumns.com?

    Plugin Author Tobias Schutter

    (@tschutter)

    Found the problem. This will be solved in the next release. Thank you reporting it.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Select filters value not updated – pro add-on’ is closed to new replies.