add article php link directory wordpress article directory script
WordPress.org
Categories
Giving WordPress Its Own Directory
Topics
Many people want WordPress to power their website’s root (e.g. http://example.com ) but they don’t want all of the WordPress files cluttering up their root directory. WordPress allows you to install it into a subdirectory, but have your website served from the website root.
As of Version 3.5, Multisite users may use all of the functionality listed below. If you are running a version of WordPress older than 3.5, please update before installing a Multisite WordPress install on a subdirectory.
Note to theme/plugin developers: this will not separate your code from WordPress. Themes and plugins will still reside under wp-content folder.
Moving a Root install to its own directory # Moving a Root install to its own directory
1) Without change of SITE-URL (remains example.com )
2) With change in SITE-URL (it will redirect to example.com/subdirectory )
Method I (Without URL change) # Method I (Without URL change)
1) After Installing the wordpress in root folder, move EVERYTHING from root folder into subdirectory.
Method II (With URL change) # Method II (With URL change)
Moving process # Moving process
(p.s. If you’ve already installed WP in subdirectory, some steps might be already done automatically).
Now when users to go your root domain (example.com), it will automatically redirect to the subdirectory you specified.
Moving Specific WordPress Folders # Moving Specific WordPress Folders
The following links explains how to change specific directories within WordPress:
WordPress плагин “Каталог статей” (Article Directory)
Внимание! Дальнейшая разработка и поддержка плагина и темы “Article Directory” остановлена.
Основная задача данного плагина заключается в том, чтобы вывести на главной странице (или любой другой) структурированный список рубрик, элементы которого можно было бы легко видоизменять с помощью CSS. Кроме того, плагин позволяет авторам публиковать статьи и менять их профиль, минуя админку WordPress.
Возможности плагина
Стандартные возможности для списка рубрик:
Особые возможности для списка рубрик:
Дополнительные возможности:
Требуемая версия WordPress: 2.9 – 3.0.4.
Скачать
Плагин “Article Directory” (каталог статей на WordPress)
Версия: 1.3 | Последнее обновление: 16.01.2011
Установка
Внимание: если вы используете плагин совместно с одноименной темой “Article Directory”, то пункты установки 5, 6, 7 и 8.1 выполнять не нужно:
В файл index.php вашего WP-шаблона (либо в любое другое место, где хотите отобразить список рубрик) вставьте следующий код:
Добавьте следующий код в том место шаблона, где хотите отобразить форму авторизации, например в файл sidebar.php:
Добавьте следующий код в файл header.php перед тегом :
Выберите интерфейс автора в соответствующей опции на странице “Настойки → Article Directory”. Если вы выбрали “Панель автора”, то выполните следующие подпункты:
В папке с темой создайте новый PHP-файл, к примеру, author-panel.php, и вставьте в него следующий код:
Настройка
Возможно, что понадобится сделать 2 вещи:
Как добавить иконки для родительских рубрик
Это делается с помощью CSS. Стили для иконок нужно добавить в файл style.css вашего шаблона.
Стили должны иметь следующий вид:
Здесь цифра 23 означает, что данная иконка будет добавлена во 2-й столбец для 3-й сверху родительской рубрики. Соответственно, необходимо создать столько таких стилей, сколько у вас имеется родительских рубрик, при этом указывая соответствующую цифру для каждой иконки.
i/icon.gif – это путь до файла иконки, начиная от папки с шаблоном.
4px – величина сдвига иконки слева от блока родительской рубрики.
3px – величина сдвига иконки сверху от блока родительской рубрики.
Плагин также позволяет вывести отдельный, аналогично оформленный список со ссылками на RSS-фиды рубрик. Для этого необходимо сделать следующее:
На месте вывода списка вставить следующий код:
История версий
Версия 1.3 (16.01.11)
Версия 1.2 (16.10.10)
Версия 1.1 (12.09.10)
Версия 1.0 (06.09.10)
Версия 0.9.9 (27.09.09)
Версия 0.9.8 (22.06.09)
Версия 0.9.7 (07.03.09)
Версия 0.9.6 (25.01.09)
Версия 0.9.5 (04.01.09)
Версия 0.9.4 (29.11.08)
Версия 0.9.3 (05.10.08)
Версия 0.9.2 (19.08.08)
Версия 0.9.1 (25.07.08)
Версия 0.9 (19.07.08)
Версия 0.8.1 (28.06.08)
Версия 0.8 beta (13.06.08)
Версия 0.7 (22.05.08)
Версия 0.6 (22.04.08)
Версия 0.5 (11.04.08)
Версия 0.4 (29.02.08)
Версия 0.3 (23.01.08)
Create an Article Directory website in 30 minutes using this Article Directory Script
The internet is undoubtedly the No 1 source of data in the modern days. Most of the people use their computers to search for their answers online.
Therefore, an article directory, where the visitors can post and read the articles is never a bad idea!
But to create and manage an Article Directory takes in a lot of considerations and efforts. Here’s how you can do it step by step:
The pre-requisite for an Article directory: Domain and Hosting
Before we start with actual website building, we shall procure the domain name and an efficient hosting. These two are the pre-requisites of creating a website. We will go for a self-expressive domain name and a safe and efficient host.
Get Domain name from Bluehost
Domain name is the unique address that represents your website on the internet. The domain name ultimately becomes the identity of your website and therefore you must choose it wisely.
The following are some of the ideas for choosing the domain name for your website
Templatic Themes fans get a special low price when hosting with Bluehost. Signup and claim this deal.
Enter the domain name and search for it. If the domain name is available, you can check out for it. If not, you can try a variation of the name and see if it is available.
When you pay for the domain name, the information related to the domain name will be sent to you by email.
The hosting service from BlueHost
Now for your WordPress Article Directory website, you will need an efficient server to host your website.
An article directory website is expected to have a large number of visitors as well as huge data in form of article and blogs. Therefore we need an efficient host, with maximum uptime, great page load speed,
Choose the platform and software for Article Directory website
With the modern platforms creating websites is really easy. There are many popular platforms that you can use to create your article directory website. However, the best one is WordPress!
Why WordPress for your Article Directory software?
WordPress is one of the simplest CMS. It is easy to use, manage. Even if you’ve never created a website before, you can rely on WordPress.
Moreover, WordPress is a free and open source. The learning curve is almost nil. With the help of WordPress and a perfect theme, you can get started on your website in just minutes.
Everything about your website can be managed by easy options. Without writing or tweaking a line of code, you can create your website.
Choosing the best Article Directory Website Software
To create an Article Directory website on WordPress, we will use the Article Directory Script here. Or you can go for an article directory software builder to create your website. With the article Directory WordPress template, you can create in-depth and detailed articles portal with WordPress.
The theme is highly customizable and flexible. So instead of going for an article directory PHP script, we’ll rely on this article directory script to create our Article directory website. With this website template, you can start your online article directory website in just minutes.
Installing the Article Directory WordPress Theme
If you try creating your article directory website by involving programmers, it will take hours and weeks. But with the article Directory software, it gets easier.
When you install this theme, your WordPress website will be automatically loaded with all the features needed by an Article Directory website.
However, to install sample data, and make your Article Directory website look just like the Article directory software demo. Just one click and you have a ready to go the website, where all you need to do is to remove the sample articles and add actual data.
Customizing your WordPress Article Directory script
Now we have our Article Directory website ready and running, but no size fits all. So we will need to customize the theme as per our imaginations.
Updating the logo and footer and site title on your Article Directory script
When it comes to branding your article directory website, the first step is always to change the logo.
Logo of your website is obviously the first thing that people would notice about your website. It should represent the identity of your article Directory.
With the Article Directory software for WordPress, you get two options:
Besides the logo, don’t forget to edit and replace the footer credits with a simple option. You can refer the theme documentation that has all the explanation about the customization options and their use.
Changing site colors and background of your Article Directory Software
Colors do have their own way of attracting people. Not saying that the color of your website directly affects the traffic or performance of your website, but can’t deny of their impact.
The article directory template lets you choose the color of your website easily. This article directory website software comes with the preset options to change the theme skin.
Besides, you can refer the theme guide and change all that you need to. Most of the content that you see on the homepage as well as other pages on your site come from widgets. Therefore to change how your website looks, you can just manage the widgets.
Therefore, changing the style of your website is just a matter of drag and drop.
Allowing articles/guests post in your Article Directory
More articles on your article Directory means more useful content for your users to find. And it’s always a great idea to let your visitors contribute to your article directory.
This has many advantages:
Creating categories on your WordPress Article Directory website
Before we talk about adding articles to the article directory website, we need to create proper categories under which the articles will be added.
These categories will be shown to the visitors on the front end when they submit their articles.
Categories on article directory websites are really important because that makes it easy for the visitors to find the post of their choice.
The visitors can just choose the category they are looking for. This way their time is not wasted by browsing the categories they are not interested in.
Adding articles to your Online article Directory website through WP Dashboard
The WordPress Article directory script allows you to add articles from the front end (using a form) as well as back end (through WordPress dashboard).
You can add articles to your article directory, from the backend as well as allow your visitors to submit through the front end submission form.
The backend option lets you add articles just like you add a blog post with the WordPress dashboard. Simple and easy – You just have to fill in the fields with the values you want and press “publish” to make your article live.
Front-end submissions on your Article Directory website
If your article directory website has enough traction, you can start allowing paid front-end listing submission. This can help you in two ways:
The Article directory WordPress theme comes with all the inbuilt options to help you earn through paid article submission feature.
It has a ready to use registration and user management module. Moreover, it allows you to create payment plans as per your requirements. So you can decide the plans for your article directory website.
To accept payments on your article directory website, you can use one of the inbuilt options. All you need to do is to configure the available payment modules.
Creating pricing packages for your article directory
When you are allowing front-end submission on your Article directory website, you must first create pricing packages.
These packages will be displayed to your front end users while they try to submit their articles on your Article Directory website.
Also, the article directory software comes with a ready to use article submission form. Generally, it takes a lot of time designing the form, deciding on the fields you want and the validations. But with the article directory WordPress template, you can start allowing front-end submission easily.
Managing your WordPress Article Directory Script
You can create a website easily. Especially with all the tools and techniques available, creating a website just got easier. But maintaining a live website is not a piece of cake.
Here are a few procedures that you must follow to maintain your article directory website.
Holding the articles for verification
The article directory script for WordPress allows you to choose if you want to hold the submitted articles for moderation or directly publish it.
However, you can even allow the submitted articles to be published automatically. But it’s a good idea to keep a check on what the users submit on your website.
Especially when it is a content-based website, the validity and truthfulness of the articles matter the most. You must make sure that the content on your website is unique.
Removing old/outdated articles or updating them
Along with adding new articles to your Article directory website, you need to make sure that the existing articles are valid and not outdated.
If you find an article that is no longer meaningful, then you must remove it.
For instance: There’s an article that tells you about the best Christmas deals. Now after the festive season is over, the deals become outdated and you must make sure that it is removed from your website.
Also, you should keep a check that all the data contained by the articles on your article directory website is fresh and true. If you find some article containing false or misleading data, you should immediately get rid of it.
Checking the validity of the articles under the category
Categorizing of articles on your Article Directory website is important in two ways:
Therefore, it becomes important to ensure that the articles on your article directory website are added under the relevant categories. Especially when you allow front-end article submission. Make sure that the users are choosing proper categories while submitting their articles on your website.
So Are you ready to create your own article directory website now?
With the steps mentioned above, you can create your own article directory search software in no time. With the Article Directory Template, you can manage your site with intuitive options and inbuilt features.
However, you must keep in mind that an article directory website needs a lot of maintenance. All the content on your website should be useful and legit.
With little efforts and patience, you can create an article directory and start earning some passive income. So now, is the time to download the article directory script and get started.
WordPress.org
Categories
htaccess
Topics
WordPress uses this file to manipulate how Apache serves files from its root directory, and subdirectories thereof. Most notably, WP modifies this file to be able to handle pretty permalinks.
Basic WP # Basic WP
Multisite # Multisite
WordPress 3.5 and up # WordPress 3.5 and up
If you activated Multisite on WordPress 3.5 or later, use one of these.
Subfolder Example
SubDomain Example
WordPress 3.4 and below # WordPress 3.4 and below
If you originally installed WordPress with 3.4 or older and activated Multisite then, you need to use one of these:
SubFolder Example
WordPress 3.0 through 3.4.2
SubDomain Example
General Examples # General Examples
Options # Options
Any options preceded by a + are added to the options currently in force, and any options preceded by a – are removed from the options currently in force.
Possible values for the Options directive are any combination of:
None
All options are turned off.
All options except for MultiViews. This is the default setting.
ExecCGI
Execution of CGI scripts using mod_cgi is permitted.
FollowSymLinks
The server will follow symbolic links in this directory.
Includes
Server-side includes provided by mod_include are permitted.
IncludesNOEXEC
Server-side includes are permitted, but the #exec cmd and #exec cgi are disabled.
Indexes
URL maps to a directory, and no DirectoryIndex, a formatted listing of the directory.
MultiViews
Content negotiated “MultiViews” are allowed using mod_negotiation.
SymLinksIfOwnerMatch
Only follow symbolic links where target is owned by the same user id as the link.
This will disable all options, and then only enable FollowSymLinks, which is necessary for mod_rewrite.
DirectoryIndex # DirectoryIndex
DirectoryIndex sets the file that Apache will serve if a directory is requested.
Several URLs may be given, in which case the server will return the first one that it finds.
DefaultLanguage # DefaultLanguage
DefaultLanguage will cause all files that do not already have a specific language tag associated with it will use this.
Default Charset # Default Charset
Set Charset for Specific Files
Set for specific files
ServerSignature # ServerSignature
The ServerSignature directive allows the configuration of a trailing footer line under server-generated documents. Optionally add a line containing the server version and virtual host name to server-generated pages (internal error documents, FTP directory listings, mod_status and mod_info output etc., but not CGI generated documents or custom error documents).
adds a line with the server version number and ServerName of the serving virtual host
suppresses the footer line
creates a “mailto:” reference to the ServerAdmin of the referenced document
Force Files to be Downloaded # Force Files to be Downloaded
The below will cause any requests for files ending in the specified extensions to not be displayed in the browser but instead force a “Save As” dialog so the client can download.
HTTP Compression # HTTP Compression
The AddOutputFilter directive maps the filename extension extension to the filters which will process responses from the server before they are sent to the client. This is in addition to any filters defined elsewhere, including SetOutputFilter and AddOutputFilterByType. This mapping is merged over any already in force, overriding any mappings that already exist for the same extension.
See also: https://developers.google.com/speed/docs/insights/EnableCompression
Force Compression for certain files
Send Custom HTTP Headers # Send Custom HTTP Headers
The Header directive lets you send HTTP headers for every request, or just specific files. You can view a sites HTTP Headers using Firebug, Chrome Dev Tools, Wireshark or an online tool.
Unset HTTP Headers # Unset HTTP Headers
This will unset HTTP headers, using always will try extra hard to remove them.
Password Protect Login # Password Protect Login
This is very useful for protecting the wp-login.php file. You can use this htpasswd generator.
Basic Authentication
Digest Authentication
Require Specific IP # Require Specific IP
This is a way to only allow certain IP addresses to be allowed access.
Protect Sensitive Files # Protect Sensitive Files
This denies all web access to your wp-config file, error_logs, php.ini, and htaccess/htpasswds.
Require SSL # Require SSL
This will force SSL, and require the exact hostname or else it will redirect to the SSL version. Useful in a /wp-admin/.htaccess file.
Как правильно подключить часть (шаблон) в index.php wordpress?
Решение проблемы: часть 1
Есть сайт на вордпрессе на хосте, создал новую тему и залил eё на хост в папку с темами, в админовской панели активировал созданную тему и при переходе на сайт показывает такое:
Писал чтобы было так:
Код index.php темы:
Папка template-parts введите сюда описание изображения
Т.е. получилось так будто я писал get_header() и get_footer(), а все require_once() не сработали, не могу понять почему
Решение проблемы: часть 2
Применив на практике советы, ответ и гуглинг. Я создал в папке темы новую папку partials и переместил туда все файлы. После этого вызвал эти файлы в index.php
Но результат оставался прежним(на странице только get_header() и get_footer())
Супер интересная штука
Мне в голову пришла одна «извращенская мысль» вставить код из шаблонов прямо в index.php, но такое то же не дало никаких результатов, вот 












