Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Ashley Shaw
    PLUS
    Ashley Shaw
    Courses Plus Student 15,793 Points

    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP

    Posted November 28, 2017 9:01pm by Ashley Shaw
    Ashley Shaw
    Courses Plus Student 15,793 Points
    • WordPress
    • How to Build a WordPress Plugin
    • Building WordPress Widgets, and Shortcodes
    • How to Create WordPress Widgets

    3 Answers

  • Cristian-Adrian Frasineanu
    Cristian-Adrian Frasineanu
    5,101 Points

    Is PHP passing by reference?

    Posted May 12, 2016 4:16pm by Cristian-Adrian Frasineanu
    Cristian-Adrian Frasineanu
    5,101 Points
    • WordPress
    • How to Build a WordPress Plugin
    • Building WordPress Widgets, and Shortcodes
    • How to Create WordPress Widgets

    1 Answer

  • Cristi Roberts
    Cristi Roberts
    5,905 Points

    When trying to register my widget, it doesn't show up in the widget area.

    Posted March 26, 2016 5:29pm by Cristi Roberts
    Cristi Roberts
    5,905 Points
    • WordPress
    • How to Build a WordPress Plugin
    • Building WordPress Widgets, and Shortcodes
    • How to Create WordPress Widgets

    2 Answers

  • Juliette Tworsey
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Juliette Tworsey
    Front End Web Development Techdegree Graduate 32,628 Points

    How to create Wordpress Widgets

    Posted January 20, 2016 11:20pm by Juliette Tworsey
    .a{fill-rule:evenodd;}techdegree seal-36
    Juliette Tworsey
    Front End Web Development Techdegree Graduate 32,628 Points
    • WordPress
    • How to Build a WordPress Plugin
    • Building WordPress Widgets, and Shortcodes
    • How to Create WordPress Widgets

    1 Answer

  • Ulises Calvo
    Ulises Calvo
    2,233 Points

    Can anyone explain this Widget code for me please?

    Posted January 11, 2016 3:02pm by Ulises Calvo
    Ulises Calvo
    2,233 Points
    • WordPress
    • How to Build a WordPress Plugin
    • Building WordPress Widgets, and Shortcodes
    • How to Create WordPress Widgets

    0 Answers

  • Ulises Calvo
    Ulises Calvo
    2,233 Points

    Can I echo the label and input fields from the Functions Form function?

    Posted January 10, 2016 7:26pm by Ulises Calvo
    Ulises Calvo
    2,233 Points
    • WordPress
    • How to Build a WordPress Plugin
    • Building WordPress Widgets, and Shortcodes
    • How to Create WordPress Widgets

    0 Answers

  • Patrizia Lutz
    Patrizia Lutz
    1,449 Points

    Saving widget produces error Warning: Illegal string offset 'title' on on line 152

    Posted July 2, 2015 7:56pm by Patrizia Lutz
    Patrizia Lutz
    1,449 Points
    • WordPress
    • How to Build a WordPress Plugin
    • Building WordPress Widgets, and Shortcodes
    • How to Create WordPress Widgets

    1 Answer

  • Caroline Forslund
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Caroline Forslund
    Front End Web Development Techdegree Graduate 36,096 Points

    Widget won't appear on my site

    Posted April 16, 2015 9:09pm by Caroline Forslund
    .a{fill-rule:evenodd;}techdegree seal-36
    Caroline Forslund
    Front End Web Development Techdegree Graduate 36,096 Points
    • WordPress
    • How to Build a WordPress Plugin
    • Building WordPress Widgets, and Shortcodes
    • How to Create WordPress Widgets

    2 Answers

  • Luke Travis
    Luke Travis
    2,887 Points

    $instance variable never declared

    Posted October 25, 2014 2:31am by Luke Travis
    Luke Travis
    2,887 Points
    • WordPress
    • How to Build a WordPress Plugin
    • Building WordPress Widgets, and Shortcodes
    • How to Create WordPress Widgets

    1 Answer

  • valeriuv
    valeriuv
    20,999 Points

    Why does The Official Treehouse Badges Widget not work? (solved)

    Posted October 18, 2014 9:31am by valeriuv
    valeriuv
    20,999 Points
    • WordPress
    • How to Build a WordPress Plugin
    • Building WordPress Widgets, and Shortcodes
    • How to Create WordPress Widgets

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord