DELETE Removing this example unused file
This commit is contained in:
parent
e878a92e9f
commit
41683a43de
|
|
@ -1,16 +0,0 @@
|
|||
<?php // Exemple de code qui pose problème
|
||||
|
||||
$current_blog_id = get_current_blog_id();
|
||||
switch_to_blog(2);
|
||||
|
||||
|
||||
// Working on all websites
|
||||
$issue_related_articles = new WP_Query(array(
|
||||
'post_type' => 'articles',
|
||||
'posts_per_page' => 3,
|
||||
));
|
||||
|
||||
// Only working on blog 2 (Both the 'articles' post type and the 'etiquettes' taxonomy are defined on blog 2)
|
||||
$post_tags = get_the_terms($article->ID, 'etiquettes'); // Returns an error "Invalid taxonomy"
|
||||
|
||||
restore_current_blog();
|
||||
Loading…
Reference in New Issue
Block a user