Skip to content
All gists
Back to GitHub
Sign in
Sign up
Sign in
Sign up
{{ message }}
Instantly share code, notes, and snippets.
Rolf Allard van Hagen
RavanH
Pharéo
Annonay, France
Sign in to view email
https://phareo.eu
@RavanH
View GitHub Profile
Sort:
Recently created
Sort options
Recently created
Least recently created
Recently updated
Least recently updated
All gists
1
Forked
1
Sort:
Recently created
Sort options
Recently created
Least recently created
Recently updated
Least recently updated
1 file
0 forks
1 comment
0 stars
RavanH
/
blogs-menu.php
Last active
Sep 20, 2017
WordPress Multisite: List of all blogs
View
blogs-menu.php
<?php
function
projects_menu(
$
atts
=
array
() ) {
global
$
wpdb
,
$
blog_id
;
$
a
= shortcode_atts( array(
'link_self'
=>
false
,
'format'
=>
'ul'
,
// ol, dl... TODO
'slogan'
=>
false
,
// TODO
'sort_by'
=>
'title'
,
// or ID TODO
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.