• Home
  • Technology
    • Ebullientech
    • Entrepreneurship
    • Video Technology
    • Cloud Computing
    • Business Analysis
  • Healthcare
    • Pharmacology
  • Thoughts
    • Food
    • General
    • Stories
    • Places
    • Workplace
    • Social Issues
    • Reviews
  • Quotes
  • Ebullientech News and Events
  • About

Kamalika's Notebook

thinking nothing...............!!

How To Get Posts Category In WordPress

April 30, 2015 By Kamalika Leave a Comment

Problem

Can we get the list of blog posts in the following structure?

Published Date
Author
Category
Post Title
Blog URL

Solution

[bash]

SELECT p.ID,DATE(p.post_date) Date,u.display_name Author,p.post_title Title,GROUP_CONCAT(t.name) Category,
CONCAT(‘http://yourdomain.com/blog/’,p.post_name) URL
FROM wp_posts p
LEFT JOIN wp_users u ON p.post_author = u.ID
LEFT JOIN wp_term_relationships rel ON rel.object_id = p.ID
LEFT JOIN wp_term_taxonomy tax ON (tax.term_taxonomy_id = rel.term_taxonomy_id AND tax.taxonomy=’category’)
LEFT JOIN wp_terms t ON (t.term_id = tax.term_id AND t.name!=’uncategorized’)
WHERE p.post_status = ‘publish’ and p.post_type=’post’
GROUP BY p.ID
ORDER BY Date;

[/bash]

Tables used in the above query are:

wp_posts

wp_posts table contains all kinds of contents of an WordPress Website / Blog and the content types include the following:

  • posts
  • pages
  • custom post types
  • attachments
  • links
  • navigation menu items (which are stored as individual posts)

wp_users

wp_users table contains user data.

wp_term_relationships

WordPress content types are attached to the following types of data:

  • categories
  • tags
  • custom taxonomies and terms
  • post metadata

wp_term_relationships contains the relationship between WordPress contents and categories / tags.

wp_term_taxonomy

wp_term_taxonomy contains the taxonomy details.

wp_terms

wp_terms contains the details of all defined categories and tags.

The WordPress Database Structure

WordPress uses a number of database tables with relationships between them, most of these relationships are one-to-many.

One-to-many relationships occur when each record in TableA may have many linked records in TableB but each record in TableB may have only one corresponding record in TableA.

In case of WordPress, one user can have many posts that they have written related to their user record.

The diagram below is taken from the WordPress Codex and shows the database tables and how they are related / linked:

WordPress Database Diagram

Filed Under: Ebullientech, MySQL, WordPress Tagged With: Custom WordPress Queries, Ebullientech, Ebullientech Interactive LLP, SQL Query, WordPress, WordPress Consultant Mumbai, WordPress Database Diagram, WordPress Database Structure, WordPress Developer Mumbai, WordPress SQL Query Category, WordPress to SQL Query Query

10 Must Have WordPress Plugins

November 6, 2014 By Kamalika Leave a Comment

It is true that plugins may make your WordPress website load slower than expected but it is also true that only plugins can extend the functionality of a WordPress site. In fact there are some plugins will rather help your site run faster and more efficiently. Plugins I’m going to list below are used my site and I have installed and configured them in various other WordPress sites as well, so you can say that they are tried and tested!

Akismet

Akismet

[Read more…]

Filed Under: Technology, WordPress Tagged With: All in One SEO Pack, Contact Form 7, Disqus Comment System, Google XML Sitemaps, Gravity Forms, WordPress Plugins

SEO Tips for your WordPress Site or Blog

August 25, 2014 By Kamalika 2 Comments

With the advent of technologies like Cloud and Open Source launching your own self hosted CMS based Website or Blog is now nothing more than a series of operational activities which is why lot a surge of enthusiasm is seen among a lot of people from various professional backgrounds; be it technological or non-technological. Most of these Websites and / or Blogs are developed using WordPress with a free or premium theme as per the requirement of the user. I personally feel WordPress’s technological growth and tremendous community support are among the key reasons that more and more people are showing interest in launching their very own Website using WordPress.

One’s main goal for launching a personal Website is to build a strong social and online presence, yes of course there are social networking websites like Facebook, Twitter, Pinterest, Quora, Tumblr, etc to facilitate the same but they can never give you the same gratification or feeling of identity you get from your own Website.

Is launching your self hosted Website enough to make sure you are found online? Or guarantee of a strong online identity for you? The answer is… NO! You need the support of Digital Marketing, precisely Search Engine Optimization or SEO. But a Digital Marketer or SEO Expert doesn’t come for cheap, forget marketing agencies even an individual would cost you premium! Does that mean the end of your online identity dream? Of course not! There are few simple things you can do to make sure Google, Bing and other search engines are duly notified about your Website’s presence and their crawlers / bots visit your Website quite often which in turn will make your Website rank well in search engines.

SEO Tips for your WordPress Website

Navigation… A search engine friendly navigation is the most important thing for any website, make sure you have a well structured menu and permalink is turned on to make the URLs search friendly, click here for WordPress Permalink Settings. My recommendation would be to select the postname as permalink structure.

Content Optimization… Content is the King!… Might sound cliched but content still is the thing that works best. Make sure your content is unique and plagiarism free, not stuffed with keywords but contains a healthy balance of the same. Titles should be intuitive and represent long tail keywords. Try to cover common topics at the initial stage because that will increase your Website’s chances of getting found frequently… “Travel the world in 80 days” or “Write your first PHP program” or “Understanding ISO, Shutter Speed and Aperture” or “How to cook Dal fry” are some good examples of intuitive and search friendly content titles. Make sure you to use More and Nextpage tags to increase pageviews.

SEO

Yoast is the most popular WordPress plugin but I would never recommend that because it slows down your Website and at times even throws errors but most importantly I have never seen it helping any Website or Blog rank well in search engines. The plugin I would recommend is All in One SEO Pack. Very simple and easy to use, lightweight and works well for WordPress SEO. Every image in your Website must have ALT / TITLE tag, if you are using one image then use the content title for ALT and if there are multiple images then use long tail keywords relevant to your content. Simply search with your content title in Google, if it is competitive enough Google will show some keyword suggestion at the bottom of the search results page. Use these keywords in the keyword field of your post / page and for tags.

XML Sitemap

Use the plugin called Google XML Sitemaps. Then submit your XML sitemap to Google Webmaster Tools. If you don’t know how to use Google Webmaster Tools, click here. Use the Fetch as Google feature sparingly, in fact use it only when your Website or Blog has changed significantly.

Performance

Majority of the WordPress themes comes with a lot of jQuery and every time your Website is opened all these jQuery scripts also load which slows down your entire Website and causes bad user experience. Also Google and Bing bots don’t like slow Websites. Use the the plugin called Use Google Libraries so that all the jQuery are pulled from Google repositories lowering the burden on your Server and Website. You can use W3 Total Cache plugin for caching, remember this plugin is a bit tricky and technical and it sometimes breaks the functionality of other plugins like Google XML Sitemaps. Google loves faster loading websites! Keep testing / quality checking your Website’s performance in Google Page Speed and understand the performance issues. Sometimes these issues may sound really technical, simply search Google with the issues or consult somebody technical if you can.

Analytics

Until you are measuring what you are doing all these fuss don’t make any sense. Integrate Google Analytics in your Website using a plugin called Ultimate Google Analytics, don’t go by the threatening message on the top of the plugin directory page, this plugins still works very well with all the WordPress versions since 1.5.1.3.

Though these are the stepping stones of your WordPress Website’s SEO but they do fairly well for better search engine rankings, at least you’ll start seeing organic traffic coming to your Website.

Filed Under: CMS, Digital Marketing, SEO, Technology, WordPress Tagged With: All in One SEO Pack, Digital Marketing, SEO, SEO for Blogs, SEO WordPress Tips, SEO WordPress Tutorial, WordPress SEO, XML Sitemaps

What is a CMS…and WordPress

August 22, 2014 By Kamalika 1 Comment

CMS is the abbreviation of Content Management System. As per Wikipedia definition… “A content management system (CMS) is a computer application that allows publishing, editing and modifying content, organising, deleting as well as maintenance from a central interface. Such systems of content management provide procedures to manage workflow in a collaborative environment. These procedures can be manual steps or an automated cascade.”

Why you need a CMS

If you want your business to be searched and found online, then your website needs to be content-driven. Now, what do content-driven means? It means you have to keep adding fresh and unique content to your website frequently. Adding content requires modification of the current content, and how do you do it? Depends on how you have built your website. If it is an HTML driven website, then you have to manipulate the HTML code which will require you to understand HTML basics. If you have used a freelance developer, then you’d need to contact that guy. Both have one common problem, dependency! Either you have to be knowledgeable enough, or you’ll have to depend on someone. So what should do you if you want to build and manage your online presence quickly and cost-effectively? The solution to this problem lies in a Content Management System or CMS.
[Read more…]

Filed Under: CMS, Technology, WordPress Tagged With: CMS, CMS Developer, CMS Platform for Online Media, CMS Wordpress consultant Mumbai India, Content Management System, WordPress, WordPress Customization Expert, WordPress.COM

Let’s connect…

  • Facebook
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube

Hello There…

I'm Kamalika, a techpreneur & startup mentor, blogger, hobbyist photographer, Netflix & Kindle indulgent, food connoisseur, Starbucks aficionado and former Disney employee ...next

Looking for something?

Tags

All in One SEO Pack AWS Banaras Blogger Blogging Blogs Dasaswamedh Ghat Ebullientech Ebullientech Interactive LLP Facebook Facebook Developers father's day father's day wishes father's day wishes for dad fathers day love Fathers Day Special Fathers Day wishes from daughter Father’s day memories GeoTech GeoTech Informatics HipHop for PHP Kamalika Guha Roy Kashi Ganga LAMP MySQL Nabaneeta Guha Roy Online Marketing PayPal PayPal's suspension of Indian bank transactions PHP PHP & MySQL Saraswati Puja Search Engine Optimization SEO Startup The Ganges TypePad UCO HUT Varanasi Web 2.0 Web 2.0 Design Web Design Web Marketing WordPress WordPress.COM

Timeline

  • 2024 (1)
  • 2021 (3)
  • 2020 (7)
  • 2019 (4)
  • 2018 (1)
  • 2015 (6)
  • 2014 (13)
  • 2013 (9)
  • 2010 (7)
  • 2009 (2)

Topics

Copyright © 2021 · Kamalika Guha Roy, Powered by: Ebullientech