Freelance Technical Digital Media Consultant
Posts tagged sub
Holy Keyword Loaded Sub-domains Batman!
Aug 20th
After finding this in a random search on Google for CSV to SQL converters a couple of days ago and dismissing it, I have just done some other queries for MySQL scripts and seen results like this:
What the hell is going on? Surely these don't give better SEO do they Google....?
They certainly don't help my search!
Page and Sub-page Menus In WordPress
Sep 17th
Recently I wanted to change the theme I use on my personal blog to the following: http://www.wpdesigner.com/2007/01/22/digg-3-columns-wordpress-theme/ as the current one I was using was pretty awful (to say the least) and this was a lot better
I liked this theme but unfortunately it lacked one thing (as do a lot of other themes I've used) - an auto generating set of page menu tabs at the top. The default theme just had a link to the home and about pages, so I added this in and it now works exactly the way I wanted it to. I've pasted the code below should you wish to do something similar.
This mod basically creates a list of all the parent pages along the top (which are rendered as tabs due to the css), and then when a link of a parent page is clicked, it displays the home tab, the tab for the parent page and then the list of tabs for the sub pages of that parent page.
On my site so far I only have one level of sub pages below the parent, but I believe this should work for any hierarchy of sub-sub pages - if you use this code and it does please post a comment to let me know.
Also this is a bit rough - the next time I use it I will probably clean it up a bit, but I know it works for now. If you'd like to provide me with a cleaner version before I have chance to work on it please feel free to drop me a line, and if it works I'll also post it here.
1,
'show_date' => '',
'date_format' => get_option('date_format'),
'child_of' => 0,
'exclude' => '2, 53',
'title_li' => '',
'echo' => 1,
'authors' => '',
'sort_column' => 'menu_order, post_title');
if($post->post_parent)
$children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
else
$children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
if ($children)
{
if(intval($post->post_parent)>0)
{
wp_list_pages('title_li=&include='.$post->post_parent);
}
else
{
?>
-
- Announcements (2)
- Awards (1)
- AWS (7)
- CentOS (12)
- Cool Articles (1)
- Databases (4)
- Diversions (3)
- Experiments (1)
- Facebook Apps (1)
- Featured (1)
- Flash (4)
- Free Software (1)
- Freelancing (1)
- Inspirational People (1)
- JavaScript (8)
- Linux (14)
- management (2)
- medical (1)
- Microsoft (14)
- Misc (11)
- Mobile Internet (1)
- MySQL (10)
- Netbasic (1)
- Networking (1)
- News (2)
- PHP (18)
- Pot O' Ideas (6)
- Presentations (1)
- Products (1)
- Projects (2)
- PS3 (2)
- Questions (1)
- Regular Expressions (1)
- Reviews (10)
- Routing (1)
- science (1)
- Security (3)
- SEO (2)
- Servers (5)
- software (7)
- Streaming (4)
- twitter (30)
- Uncategorized (5)
- Web Development (23)
- Wordpress (12)
5 ad app applications blog CentOS code CSS Databases development email entries explorer facebook firefox Flash Google google-sidewiki google-toolbar ideas install instructions JavaScript Linux media MySQL PHP plugin post press red Red5 script sidewiki software source space Streaming sub theme twitter website Windows word Wordpress- February 2012 (1)
- July 2011 (2)
- June 2011 (1)
- April 2011 (1)
- March 2011 (2)
- February 2011 (2)
- January 2011 (1)
- December 2010 (1)
- October 2010 (1)
- September 2010 (1)
- June 2010 (1)
- May 2010 (2)
- April 2010 (1)
- March 2010 (10)
- February 2010 (2)
- January 2010 (3)
- December 2009 (1)
- November 2009 (2)
- October 2009 (4)
- September 2009 (2)
- August 2009 (9)
- July 2009 (4)
- June 2009 (4)
- May 2009 (8)
- April 2009 (6)
- March 2009 (6)
- February 2009 (2)
- January 2009 (1)
- December 2008 (3)
- November 2008 (1)
- September 2008 (3)
- August 2008 (9)
- July 2008 (6)
- June 2008 (6)
- April 2008 (2)
- March 2008 (1)
- February 2008 (5)
- January 2008 (4)
- November 2007 (2)
- September 2007 (7)
- August 2007 (2)
- July 2007 (9)
- May 2007 (3)
- April 2007 (1)
- How to Mount a Linux LVM2 Partition in Windows (14)
- JW Media Player – A Godsend For Flash Streaming (13)
- Installing Red5 Open Source Flash Media Server On CentOS 4.2 (11)
- Amazon CloudFront Streaming In WordPress With JW Media Player (11)
- Installing Flash Media Server 2 On Linux (CentOS 4.4) (8)
- Make Money With WordPress And Matched.co.uk (7)
- How to mount an Amazon EBS disk as a drive in Linux (CentOS) (7)
- MySQL 5.1.34 Upgrades on CentOS 4 – ho hum (6)
- WordPress Custom Menus Issue Solved! (5)
- Installing tor from source on CentOS 5 (4)
Marc Beneteau: Good article, Chris, Here is additional...
How to embed an RTMP video stream in WordPress: [...] can be configured with CLoudfront to deliver RTMP videos. Here is a good...
Alan Reynoso: Hey friend, I just want to tell you thank you for this tip! M: This all works great until I...
JW Player Shortcode For Wordpress | Thin air media: [...] Here’s the best article I could find on this topic: codechris.com [...]
Valmir: Hi, In the step 7, is correct # echo "/dev/sdb ... OR # echo "/dev/sdf ...?? Thanks!
PC Repair Brighton: Thanks for the tip, I've been playing about with all sorts of configurations with linux boot cd's,...
ARG: Great Help! Many Thanks!
acting auditions: Thanks for this help!!
User Login
-
Blogroll