-
▼
2011
(334)
-
▼
December
(30)
- How to Embed an MP3 Player in WordPress
- How to Edit Php.Ini Files in Wordpress for File Sizes
- How to Enable Thesis Avatars in WordPress
- How to Use Microsoft Expression With WordPress
- How to Change the WordPress Prefix Post Installation
- How to Share Music on Wordpress
- How to Use Redirects in WordPress
- How to Create a Magazine Theme for WordPress
- How to Change the Avatar Gravatar in Wordpress
- How to Format Yahoo! Pipes RSS for WordPress
- How to Change H1, H2 H3 Header Tags in WordPress
- How to Blog to WordPress via iPhone
- How to Make a PSD WordPress Theme
- How to Use WordPress Database Multiple Places
- How to Redirect a WordPress Tab
- How to Load My Logo to My WordPress Blog
- How to Insert a PNG in WordPress
- How to Connect Pages to the Footer in Wordpress
- How to Make Your WordPress Blog More Google Friendly
- How to Insert Adsense Code Into a WordPress Blog Post
- How to Insert Bookmarks in WordPress
- How to Send a Tumblr Feed to WordPress
- How to List Tags Without Links in WordPress
- How to Change the Tagline of a Post in WordPress
- How to Convert a Compendium Blog to WordPress
- How to Add a WordPress Blog to Your Zen Cart Store
- How to Change Avatars for Users in WordPress
- How to Change a Wordpress URL
- How to Create a WordPress Template Page
- How to Remove a Byline in WordPress
-
▼
December
(30)
adsense
How to List Tags Without Links in WordPress
1. Log into the WordPress dashboard and navigate to 'Appearance.' Click the 'Editor' link under 'Appearance' to load the 'Edit Themes' screen. Locate the template file you want to edit under the 'Templates' heading.
2. Find the spot on the page where you want to display tags without links. If you want to replace the tags listed on the blog index, for example, edit 'index.php' and place your new code where '
' already exists.
3. Assign the value of 'get_the_tags()' to a new variable. Check to see if any tags exist using an 'if-then' statement.
Code goes in here.
4. Create a 'foreach' loop to loop through every value in the array that 'get_the_tags()' returns. The 'foreach' loop will look like this:
Code goes in here.
You must place the 'foreach' loop within the 'if-then' statement.
5. Output the name of each tag within the 'foreach' loop. Here is the code:
name; ?>This line of code finds the 'name' field for that tag's entry in the database and then outputs it to the screen.
6. Format the tag text however you like. For example, you can place a line break after each tag like this:
name . '
'; ?>The dot breaks from PHP code to something else -- in this case, a string between quotation marks. You can put HTML code or regular text between the quotation marks. The browser will execute the HTML as code instead of text.
7. Click the blue 'Save' button to save your changes to the template.
3:45 AM | Filed Under | 0 Comments
Comments
Popular Posts
-
1. Log in to your Weebly account. 2. Click 'Theme Editor.' 3. Click on the 'Design' tab. 4. Select 'Edit CSS/HTM...
-
1. Sign up for a publisher account at Bidvertiser. Submit basic contact information and confirm your email address to get started. 2. Lo...
-
1. Log in to your WordPress dashboard. 2. Open the 'Appearance' section on the left side of the WordPress dashboard and then cli...
-
1. Open your WordPress Dashboard in your preferred browser. It is accessed at the '/wp-admin' location of your site. For example, ...
-
Facebook Widget 1. Create a Facebook fan page for your blog, if you don't already have one. You will have to manually share content wi...
-
1. Download and install the WordPress for BlackBerry app via BlackBerry App World. Download the version that corresponds with your BlackBe...
-
1. Go to your WordPress blog's administrative control panel. 2. Click the 'Settings' button on the left-side navigation menu...
-
1. Click the 'Add Contact' button on the 'Add New Post' page. This opens the 'Add a Contact Form' page. 2. Click...
-
1. Register an account with Amazon Web Services Cloud. If you have an existing Amazon account, enter your email address in the appropriate...
-
1. Log into your WordPress.com account using your user name and password. 2. Hover your cursor over the 'My Blogs' tab at the to...
Post a Comment