• Resolved mplusplus

    (@mplusplus)


    Hi there

    In custom page templates, do I always need to use “global $wpdb”? Or only if I need to make explicit calls to the database?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The latter:

    only if I need to make explicit calls to the database?

    Specifically, only if you are using the variable “$wpdb”, this applies to all global variables and objects etc, it is not specific to $wpdb”.

    Thread Starter mplusplus

    (@mplusplus)

    Cool. Thanks, Ross.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘In a custom page template, do I always need to use “global $wpdb”?’ is closed to new replies.