background preloader

Wordpress

Facebook Twitter

How to: Add Posts to Pages in WordPress [Tutorial] March 4, 2011 92 Comments Adding Posts to your WordPress Pages is handy for driving traffic to your blog from pages on your site. If you’re trying to add posts to pages in your WordPress website, this how to guide is for you. Maybe you want to add posts to the bottom of your pages… or maybe you want to put them in the middle of your pages.

You probably want to only add certain posts to certain pages, and you want a way to specify which posts goes on which pages. Your goal might be putting specific posts on a page other than your home page. That is, adding a certain set of posts to a page that is NOT your homepage, or “posts” (or “blog”) page. If one of those situations apply to you – this tutorial is for you. A quick aside: There is going to be a lot of talk on posts and pages… if you don’t know the difference – read about WordPress SEO & Posts vs Pages How to: Add Posts to Pages in WordPress IF any of that stuff above scares you, I recommend NOT reading this and asking us for help. 1. 2. 3.

WordPress theme - The Anatomy, an Infographic. Index.php – home The index file controls what the homepage of your WordPress theme looks like. By default it is a loop that queries and then displays the most recent blog posts, with a link in the bottom to view previous posts. Alternately, you can specify in wp-admin -> settings -> reading to have the home page be a page you created yourself in WordPress. In that case, you specify a different page/URL for the regular blog posts to appear on, and that page is generated by index.php. single.php – individual posts The display of individual posts in your WordPress theme is controlled by a little file called single.php. You can specify if you want sidebars (and which you want), if you want it to look different than the other pages on the site. page.php – individual pages Page.php controls what pages look like. WordPress also allows you to create different page templates within your WordPress theme for different types of pages.

Archive.php, category.php, tag.php – archives The Loop comments.php. Events Directory Theme For WordPress Nightlife | Templatic Premium Themes. When looks and functionality come together Nightlife is a powerful events directory theme that will allow you to resume full control over all created events, posts and pages. Great thing about Nightlife is that enables both you (the admin) and regular visitors to submit content. On top of that the theme is entirely responsive, meaning it will look great on pretty much all screen sizes. Most Nightlife features are powered by the Tevolution plugin which comes bundled with the theme. Some of the stuff you can expect to see in Nightlife… Visitors can submit eventsAlong with the ability to add events from the WordPress dashboard, they can also be added by visitors browsing the website.

Create a multilingual siteUsing WPML you can setup a multilingual city directory where visitors can change the default language per their requirements.Bulk upload/exportNightlife makes it easy to import events from another site using .csv files. How to make money with Nightlife? Price package power Live Demo. How to Fix the Error Establishing a Database Connection in WordPress. If you have been surfing the web for a while, you have at least seen this error a few times. Error Establishing a Database Connection is one of those curses that could be caused by many reasons. As a WordPress beginner, this could be awfully frustrating specially when it happened on its own without you changing anything. We ran into this issue yesterday on our own site. It took a little over 20 minutes to detect and fix the problem. While doing the research to find possible causes, we realized that there was no good article that covered everything. In this article, we will show you how to fix the error establishing a database connection in WordPress by compiling a list of solutions all in one place.

Note: Before you make any database changes, make sure you have sufficient backups. Why do you get this error? Well in short, you are getting this error because WordPress is unable to establish a database connection. Does the problem occur for /wp-admin/ as well? Checking the WP-Config file. 5 Steps to Ensure Your WordPress Blog Is Secure. Is your WordPress blog safe from malicious people? Would you like to make your WordPress blog more secure? Most often, people don’t think about security measures until it’s too late. But there are some simple steps you can take to keep your blog safe. Why Secure Your WordPress Blog? A blog that has been hacked can suffer from loss of content, stolen data and expensive downtime. Maintaining the security of your blog helps you protect your reputation and provide your visitors with the best service possible. Here are 5 simple security measures that you should implement on your business blog today to protect it from hacking attacks. #1: Delete the “Admin” Username Hackers look for blogs that use the default WordPress admin username because it’s half of the information they need to gain entry to your blog.

The first step in making your blog secure is to create a new user profile for yourself and delete the default admin username. Create a new user profile and change the role to administrator.

Security

Getting Started with WebsiteDefender on WordPress - WebsiteDefender.com. Step 1 – Login to your WordPress dashboard and mouse over the Plugins section to your left. Click on Add New. Step 2 – In the Search box, enter WebsiteDefender and click on the Search Plugins button. Step 3 – Click on the Install Now link where the WebsiteDefender WordPress Security plugin is shown. Step 4 – Click on the Activate Plugin link. Step 5 – Click on the WSD Security node to get an initial Report of the security of your blog. Step 6 – Proceed to the Database node to create a backup of your database and to harden the security of your WordPress database. Template Hierarchy. Languages: English • Français • Italiano • 日本語 • 한국어 • Русский • Español • Português do Brasil • 中文(简体) • (Add your language) Introduction WordPress Templates fit together like the pieces of a puzzle to generate the web pages on your WordPress site.

Some templates (the header and footer template files for example) are used on all the web pages, while others are used only under specific conditions. What this article is about This article seeks to answer the following question: Which template file(s) will WordPress use when it displays a certain type of page? Who might find this useful Since the introduction of Themes in WordPress 1.5, Templates have become more and more configurable. Using Conditional Tags WordPress provides more than one way to match templates to query types. The Template File Hierarchy The General Idea WordPress uses the Query String — information contained within each link on your website — to decide which template or set of templates will be used to display the page. Examples. Page Templates. Page Templates Pages are one of WordPress's built-in Post Types. You'll probably want most of your website Pages to look about the same. Sometimes, though, you may need a specific Page, or a group of Pages, to display or behave differently.

This is easily accomplished with Page Templates. Selecting a Page Template Your Theme files should include a default page template (named: page.php). Edit Page Screen: You can assign a custom template for any individual Page by using the Template dropdown in the Edit Page screen (part of the Page Attributes module): Select a Template from the list (e.g., My Custom Page). All Pages Screen: The Quick-Edit and Bulk Edit options on the All Pages screen also have Template dropdowns. Template List Will Show Only If: There is at least one custom page template file in your active Theme's folder.

Creating a Page Template WordPress offers several ways to display Pages. Conditional Tags Specialized Page Template page-{slug}.phppage-{ID}.php /wp-content/themes/my-theme/ Category Templates. Category Templates When a viewer clicks on a link to one of the Categories on your site, he or she is taken to a page listing the Posts in that particular Category in chronological order, from newest Posts at the top to oldest at the bottom. There are many display choices, including whether to display the complete post or post excerpts, and what additional information to display (title, author, publish date, last modified time, etc.).

Each theme makes different choices, and you might want to change them. This article explains how to change what happens when the blog viewer is visiting one of your site's Category pages. Permalinks to category archives are controlled Using Permalinks settings. What Template File is Used? The first step in modifying what happens when someone visits a Category page is to figure out which of your theme's files is going to be used to display the posts. In the case of categories, the hierarchy is fairly simple. Adding Text to Category Pages Static Text Above Posts. Stepping Into Templates. Stepping into Templates Languages: English • 日本語 • 中文(简体) • (Add your language) Template files are the building blocks of your WordPress site. They fit together like the pieces of a puzzle to generate the web pages on your site. Some templates (the header and footer template files for example) are used on all the web pages, while others are used only under specific conditions.

A traditional web page consists of two files: The XHTML page to hold the structure and content of the page and the CSS Style Sheet which holds the presentation styles of the page. In WordPress, the (X)HTML structure and the CSS style sheet are present but the content is generated "behind the scenes" by various template files. The WordPress Page Structure A simple WordPress web page structure is made up of three basic building "blocks": a header, the content, and a footer. Basic Template Files To generate such a structure within a WordPress Theme, start with an index.php template file in your Theme's directory. How to Build a Custom Wordpress Theme from Scratch. If you’re confident with your CSS and HTML, it’s not hard at all to step up to the challenge of building a custom WordPress theme.

This overview shows the process of how my latest custom WordPress theme was built from design concept through to completed theme. See how the static design is split up into the various WordPress theme files, and discover how the simple PHP snippets can add that dynamic functionality of a blog. The theme I'm working on is named Sticky. The main feature of the design is its sticky sidebar (hence the name Sticky!)

, which stays in place while the main content scrolls past it. There's also a few fancy effects such as the shadows and inset text appearance that I'll be building with the help of CSS3. Before getting stuck into the build process, it's important to know how WordPress themes work. Each of these files then contains a series of PHP template tags. Configuring the stylesheet All the details of a WordPress theme are contained within the stylesheet. Integration - Opencart session info in Wordpress.