WordPress.org

Ready to get started?Download WordPress

Forums

Simple Staff List
[resolved] wp database tables (4 posts)

  1. rickyspires
    Member
    Posted 1 year ago #

    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 :)

    http://wordpress.org/extend/plugins/simple-staff-list/

  2. rickyspires
    Member
    Posted 1 year ago #

    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

  3. rickyspires
    Member
    Posted 1 year ago #

    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
    :)

  4. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    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! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.