• Resolved johnrhopkins

    (@johnrhopkins)


    Is there a way to get past the limit of 3000 tags showing in the Entry Tags list? My client currently has over 5,000 tags and we need one that isn’t showing in the 3000 to trigger the next step in the campaign after the gravity form is submitted.

    I know most people have less than 3k tags, but many of our clients with old apps have way more. This is a HUGE roadblock for completing a project on time.

    https://wordpress.org/plugins/infusionsoft/

Viewing 14 replies - 1 through 14 (of 14 total)
  • 1) Alphabetize the tag – start with a number or space?
    2) Completely unsupported, untested patch to the plugin code
    In infusionsoft.php, find the following function:

    static function get_tag_list() {

    Try changing to 4 from 2

    for( $page = 0; $page <= 2; $page++ ) {

    In function

    private function getNewTag($tag, $used = array()) {

    Change to 5000 from 10000

    if(isset($used[$tag])) {
                $i = 1;
                while($i < 1000) {
                    if(!isset($used[$tag.'_'.$i])) {
                        return $tag.'_'.$i;
                    }
                    $i++;
                }
            }
            return $tag;
        }

    Thread Starter johnrhopkins

    (@johnrhopkins)

    No dice on either one. I wish I could get my head around which tags it shows. Seems to be random, but I doubt that. Some old tags, some new ones.

    Maybe combine tag (re)naming with a sort in function get_tag_list?

    Thread Starter johnrhopkins

    (@johnrhopkins)

    Custom sort in get_tag_list is outside my pay grade LOL.

    I love this plugin… but I can’t believe this is such a difficult thing.

    Thread Starter johnrhopkins

    (@johnrhopkins)

    I’d love for it to show me the newest tags. Better would be ALL the tags. Somewhere it is limiting it to 3000 tags. That seems to be the easiest thing to modify. I just can’t find it.

    Thread Starter johnrhopkins

    (@johnrhopkins)

    It says in the comments in the plugin code that “Tags are cached using gf_infusionsoft_tag_list transient.”

    I’m wondering how to reset that cache.

    The 3000 limit is 1000 tags per page * 3 pages in function get_tag_list.
    The other change is in the tag application list.
    Up the page count & dump the tag array in get_tag_list. You should see 5000 tags.

    OK

    Thread Starter johnrhopkins

    (@johnrhopkins)

    OK, I just talked to Zack. You were on the right track, but instead of changing the 2 to a 4, in my case, I needed to change it to a 6 to make sure those last tags were seen.

    Good

    Thread Starter johnrhopkins

    (@johnrhopkins)

    Marking as resolved. Thanks Zack.

    Plugin Contributor Zack Katz

    (@katzwebdesign)

    In 1.5.8.1, I added a filter to modify how many tags to check:

    Added: gf_infusionsoft_max_number_of_tags filter to allow developers to change how many tags to fetch from Infusionsoft (returns int, 4000 default)

    Thread Starter johnrhopkins

    (@johnrhopkins)

    Thanks Zack. When I update, will I need to edit that? Or does the change we made today stay?

    Plugin Contributor Zack Katz

    (@katzwebdesign)

    You’ll need to add this to your functions.php:

    add_filter('gf_infusionsoft_max_number_of_tags', 'modify_ gf_infusionsoft_max_number_of_tags');
    function gf_infusionsoft_max_number_of_tags($previous) {
    return 6000;
    }
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Limited number of tags’ is closed to new replies.