PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
2 sec ago
Untitled
5 sec ago
Untitled
10 sec ago
Untitled
12 sec ago
Untitled
16 sec ago
cev whm
HTML | 16 sec ago
Sfrd24133pu
19 sec ago
ser_1369202213027
20 sec ago
Untitled
By: a guest on
Jul 15th, 2012
| syntax:
None
| size: 0.25 KB | hits: 11 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
function get_page_by_name($pagename)
{
$args = array(
'posts_per_page' => 999999,
'post_type' => array('profile'),
);
$pages = query_posts($args);
foreach ($pages as $page) if ($page->post_name == $pagename) return true;
return false;
}
create a
new version
of this paste
RAW Paste Data
function get_page_by_name($pagename) { $args = array( 'posts_per_page' => 999999, 'post_type' => array('profile'), ); $pages = query_posts($args); foreach ($pages as $page) if ($page->post_name == $pagename) return true; return false; }