• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
DailyBlogTips.com

DailyBlogTips.com

DailyBlogTips.com takes you from SEO to CEO. You’ll learn everything you need to know to master blogging, SEO, marketing, web design leading you to passive income.

  • Popular
  • Contributors
  • About
  • Contact / Advertise
  • Blogging
  • Marketing
  • Design
  • Money
  • Reviews
  • Productivity

Tweaking and Manipulating WordPress

By Mark Leave a Comment Reading Time: 2 minutes

This is a guest post by Muhammad Siyab.

WordPress is a very flexible and versatile blogging platform, and can be adapted for use as almost anything (CMS. Tumblelog, etc). In this post, I’ll be telling you how to make your WordPress blog more ‘magazine style’. You will learn how to include post-thumbnails, how to display specific posts on the homepage, automatically update a page which contains posts from a certain category, and more.

Using if/else to check for pages

You can use conditional tags such as if/else to check which page the user is currently on and what content to display to them. The basic structure goes like this:

----DO THIS-----

/* If the page is NOT the specified one */

----DO THIS-----

Using conditional tags will make your sidebar dynamic and alive. It is good to have a dynamic sidebar that displays information according to the particular page.

Let’s put this into action. Suppose, you want to display your work details and testimonials to the reader, if they are on the About page of your blog. Else, (if they are not on the about page), you want to display your most recent posts. The code to do the job would look like:

--YOUR WORK DETAILS AND TESTIMONIALS HERE -- --MOST RECENT POSTS CODE HERE --

What the above piece of code does is that it checks first what page the current page is. If the current page has the exact title ‘About Me’, then your work and testimonial details are shown. If the page is not the about page, your most recent posts are shown. Note that the title of the page(’About Me’) in this code and the about page must match exactly, otherwise the code will not work.

You can view all the applicable conditionals on the WordPress Codex.

Automatically Update Pages

Suppose you have a page in which you show whole posts or link to posts in a certain category. Each time you write a new post, you manually enter the information into the page. This is tedious and time consuming. You can, instead have those pages automatically updated for you! The code to use is:

Tweaking And Manipulating Wordpress Photo

About Mark

Mark is an digital entrepreneur from New York City who recently acquired DBT. He started his ventures buying growing then selling several businesses and content blogs on Flippa. A perfect night for him constitutes pizza, wine, slow jazz and WordPress! He's an SEO expert and a growth strategist. When he's not working on his businesses he enjoys sharing his learned lessons with the DBT community.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Trending Today

Popular

  • 28 Ways to Make Money with Your Website 514 Comments
  • 43 Web Design Mistakes You Should Avoid 474 Comments
  • 4 Steps to Increase Your Blog Traffic 188 Comments
  • How to Find Advertisers for Your Website 126 Comments
  • Top 25 SEO Blogs 243 Comments
  • 101 Blog Tips I learned 177 Comments
  • 30 Traffic Generation Tips 351 Comments
  • 6 Ways to Speed Up Your Site 51 Comments
  • 9 Hacks to Show Readers Your Best Stuff 21 Comments
  • 50 Simple Ways to Gain RSS Subscribers 145 Comments
  • The Best Website Taglines 127 Comments
  • What Is Success? 57 Comments
  • How to setup a 301 Redirect 52 Comments
  • The 7 Characteristics of Good Domains 76 Comments
  • 7 Ways to Promote your Site 133 Comments
  • Top 25 Celebrity Blogs 44 Comments
  • What Is A Blog? 81 Comments
  • Blog Setup: 40 Practical Tips 57 Comments
  • 10 Tips To Write Your Most Popular Post 79 Comments
  • The Blog Post Checklist 75 Comments
  • Interview: 12 Top Online Entrepreneurs 98 Comments
  • What Is Bounce Rate? 42 Comments
  • 20 SEO Terms You Should Know 28 Comments
  • How To Choose A Blog Name 15 Comments
  • 10 Tips to Sell Your Website on Flippa 37 Comments
  • Top 25 Web Design Blogs 80 Comments

Make Money & Earn a Passive Income Online

Blogging, SEO, Monetization & Traffic. Online business done right. Take your marketing efforts to the next level with tips and resources to get visitors to your website.
As featured
CNBC copyblogger problogger Entrepreneur Lifehacker Hubspot Business Insider Wordpress Showcase Neil Patel Yoast Cisco Smashing Magazine
Privacy Policy| Terms of Service | About | Contact

DBT Logo
Born in Miami, FL
DBT is an independent website. The views expressed on this site may come from individual contributors and do not necessarily reflect the view of DBT or any other organization. All Content Copyright ©2006-2023. Daily Blog Tips unless otherwise noted or credited.