Databasemodel (WordPress): verschil tussen versies
Naar navigatie springen
Naar zoeken springen
Regel 1: | Regel 1: | ||
Dit is het hoofdartikel rondom het databasemodel van WordPress. Dit it artikel is slechts een beginnetje. Zie sectie [[#Zie ook | Zie ook]] voor meer. | Dit is het hoofdartikel rondom het databasemodel van WordPress. Dit it artikel is slechts een beginnetje. Zie sectie [[#Zie ook | Zie ook]] voor meer. | ||
− | == URL | + | == Fields == |
+ | |||
+ | === GUID's === | ||
+ | |||
+ | WordPress maintains GUID-fields, like in wp_posts. I think it's okay to update them [https://deliciousbrains.com/wordpress-post-guids-sometimes-update] | ||
+ | |||
+ | == Functies == | ||
+ | |||
+ | === Posting-URL === | ||
De URL van een posting (vanaf de root van de site) vind je in <code>wp_posts</code> in de kolom <code>post_name</code> [https://wordpress.stackexchange.com/questions/58625/where-is-permalink-info-stored-in-database]. | De URL van een posting (vanaf de root van de site) vind je in <code>wp_posts</code> in de kolom <code>post_name</code> [https://wordpress.stackexchange.com/questions/58625/where-is-permalink-info-stored-in-database]. | ||
− | == WooCommerce-producten == | + | === WooCommerce-producten === |
WooCommerce-productinformatie, vind je voornamelijk op twee plekken [https://stackoverflow.com/questions/36965352/woocommerce-finding-the-products-in-database]: | WooCommerce-productinformatie, vind je voornamelijk op twee plekken [https://stackoverflow.com/questions/36965352/woocommerce-finding-the-products-in-database]: | ||
Regel 35: | Regel 43: | ||
</pre> | </pre> | ||
− | = | + | === Screen Options === |
− | |||
− | |||
− | |||
− | == Screen Options == | ||
[https://wpperform.com/wordpress-screen-options/#:~:text=WordPress%20Screen%20Options%20are%20displayed,the%20database%20that%20powers%20WordPress.]: | [https://wpperform.com/wordpress-screen-options/#:~:text=WordPress%20Screen%20Options%20are%20displayed,the%20database%20that%20powers%20WordPress.]: |
Versie van 3 okt 2020 14:45
Dit is het hoofdartikel rondom het databasemodel van WordPress. Dit it artikel is slechts een beginnetje. Zie sectie Zie ook voor meer.
Fields
GUID's
WordPress maintains GUID-fields, like in wp_posts. I think it's okay to update them [1]
Functies
Posting-URL
De URL van een posting (vanaf de root van de site) vind je in wp_posts
in de kolom post_name
[2].
WooCommerce-producten
WooCommerce-productinformatie, vind je voornamelijk op twee plekken [3]:
- wp_posts
- wp_postmeta
Voorbeeld: Selecteer de belangrijkste gegevens uit wp_posts en de SKU's uit wp_postmeta:
select wp_posts.ID as post_id, wp_posts.post_title as post_title, wp_posts.post_name as slug, wp_posts.guid as guid, wp_postmeta.meta_value as sku from wp_posts join wp_postmeta on wp_posts.ID = wp_postmeta.post_id where post_type="product" and post_status="publish" and meta_key="_sku";
Screen Options
[4]:
WordPress Screen Options are displayed in a hanging tab in the upper right of the WordPress dashboard. Screen Options are user specific based on your login name. They're stored in table wp_usermeta