• Resolved rickyspires

    (@rickyspires)


    Hello Brett,
    Hope you had a good easter.

    I have a question for you to do with the database.

    I hope you don’t might but i got asked to add custom fields so i went ahead and edited all the files to add:

    mobile,
    linked-in
    twitter
    facebook

    Everything looks good except im just getting this back:

    [staff-mobile]
    [staff-linked-in]
    [staff-twitter]
    [staff-facebook]

    i have found the tables in the db where i need to add in the extra fields but there is a bit of the code im not sure about

    wp_options table
    _staff_listing_default_tags

    a:7{
    i:0;s:12:”[staff-name]; etc….
    }

    what is the s:12 ????

    some use the same number others are different. so where is it getting that number from ?

    thanks
    Ricky ??

    https://www.ads-software.com/extend/plugins/simple-staff-list/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter rickyspires

    (@rickyspires)

    I might be something else.

    when i go make to _staff_listing_default_tags the ones i have added are not there no more?

    the same happens to _staff_listing_default_tag_string

    where have i gone wrong ?

    thanks
    ricky

    Thread Starter rickyspires

    (@rickyspires)

    FIXED IT ??

    it wasnt in the db at all. i just forgot to add them to the admin-install-uninstall.php file.

    you can have the code if you like
    ??

    Plugin Author Brett Shumaker

    (@brettshumaker)

    Sorry I wasn’t around to help you get to the answer but I’m glad you got it worked out.

    Yeah, the entries in the WordPress database from the options api are serialized arrays, which is why they look so weird.

    Again, glad you got it worked out! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp database tables’ is closed to new replies.