• Resolved Anderson Narciso

    (@andersonnarciso)


    Hello guys, I’m developing a real estate search engine for my network of websites, however i came across the problem that every site in the network, it creates a bunch of different tables.

    Ex: wp_2_posts, wp_3_postmeta. So, i was wondering if there is any way i can recover for example “wp_3postmeta” in a variable, so that you can use like this:

    $postmeta = wp_3_postmeta or $wp_postmeta (i don’t know if there is)

    Or

    global $wpdb or could exist a global $wp_postmeta.. I just pull this postmeta for given network web site.

    Is there any way i pull the wp_posts for use as variable?

    Sorry my bad english, i’m fron brazil and the brazilian Forum are abandoned :/

Viewing 1 replies (of 1 total)
  • Thread Starter Anderson Narciso

    (@andersonnarciso)

    How are things, by an irony of fate ended up finding what i needed

    I accessed this link i found on google https://jasonlawton.com/blog/advanced-custom-fields-modification/and in the middle of the code i ended up finding this

    $acf_values = $wpdb->prefix.'acf_values';
    $acf_fields = $wpdb->prefix.'acf_fields';
    $wp_postmeta = $wpdb->prefix.'postmeta';

    $wp_postmeta = $wpdb->prefix.’postmeta’;

    And it was exactly what i needed, sorry to post useless.

Viewing 1 replies (of 1 total)
  • The topic ‘Request site tables on the network’ is closed to new replies.