English flagItalian flagKorean flagChinese (Simplified) flagChinese (Traditional) flagPortuguese flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroatian flagDanish flagFinnish flagHindi flagPolish flagRomanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flagSlovak flagSlovenian flagUkrainian flagVietnamese flagAlbanian flagEstonian flagGalician flagMaltese flagThai flagTurkish flagHungarian flagBelarus flagIrish flagIcelandic flagMacedonian flagMalay flagPersian flag

Posts Tagged ‘ashland oregon’


Want to add all your pages into your buddypress admin bar automatically?

It’s easy as pie! Just add wp_list_pages to your buddypress bar with the following code!

Create a file called erocks-admin-bar-mod.php in your /plugins/ dir, put in the following code, then activate the BP Nav Bar Mods Plugin on the plugin control panel

{code type=php}
<?php
/*
Plugin Name: BP Nav Bar Mods – Add All Pages
Plugin URI: http://erikshosting.com
Description: Add All Your Pages To The Buddypress Admin Bar Automatically!
Author: Erock
Version: 1.0
Author URI: http://erikshosting.com
*/

//Links and Menus Added To The Following Function Are Always Visible On The BP Bar
function bp_adminbar_currentsite_menu() {
global $bp;
?>

<!– Call All Pages Via A WordPress Shortcode! –>
<?php wp_list_pages(‘title_li=’); ?>

<?php
}

// Call The Function Above
add_action(‘bp_adminbar_menus’, ‘bp_adminbar_currentsite_menu’, 999);

?>
{/code}

Or How About As A Drop Down Menu?

{code type=php}
<?php
/*
Plugin Name: BP Nav Bar Mods – Add All Pages
Plugin URI: http://erikshosting.com
Description: Add All Your Pages To The Buddypress Admin Bar Automatically!
Author: Erock
Version: 1.0
Author URI: http://erikshosting.com
*/

//Links and Menus Added To The Following Function Are Always Visible On The BP Bar
function bp_adminbar_currentsite_menu() {
global $bp;
?>

<!– Call All Pages Via A WordPress Shortcode As A Drop Down! –>
<li><a href=”#”>Pages</a>
<ul>
<?php wp_list_pages(‘title_li=’); ?>
</ul>
</li>

<?php
}

// Call The Function Above
add_action(‘bp_adminbar_menus’, ‘bp_adminbar_currentsite_menu’, 999);

?>
{/code}

 

Now, How About We Remove The Arrow Images From Our Non- Drop Down Menu Items

All you have to do is override the <li> tags background css attribute. It’s easy, watch..

{code type=php}
&lt;li style=”background:none;”&gt;
//Insert your link url or relative url, and your link text below
&lt;a href=”http://EXAMPLE.COM”&gt;EXAMPLE LINK TEXT&lt;/a&gt;
&lt;/li&gt;
{/code}

& Bam, those drop down arrows are gone from the link.

 

So you already picked your permalink structure..

..Now you have thousands of posts and wish you hadn’t organized them by something silly like /%mood-your-in-when-publishing-this-post%/%post-id%/…
You could change your permalink structure, but what happens to all your inbound links? All the thousands of links you have referenced in various forums, support threads, and video game screen shot forums? You’d need to write a thousand 301 redirects to keep everything going smoothly… no dice.

Well, if you download and activate ‘platinum seo pack’ from the wordpress extend plugin repository, BEFORE you change your structure, it will automatically create 301 redirects for you.

Wait, let me guess, your reading this thread because you ALREADY changed your permalink structure..

..Now the sky has fallen and everyone you see at the yoghurt shop tells you about the 404 errors they get when trying to check the latest screenshot of you p3vvning (or however the cool kids spell it) that 6 year old in frogger3D..

..Good news. You’re not boned.

Just change the permalink structure back to whatever lameness it was before, install and activate platinum seo pack, and then re-engage the stimulator, I mean set your new permalinks.