background preloader

Eternit

Facebook Twitter

Visibility settings - hiding pages, timing appearance etc. A feature you will find for many elements - in particular pages and page content elements - is the publishing control fields or visibility settings.

Visibility settings - hiding pages, timing appearance etc.

They look like this for pages: The access settings are the same for content elements. Custom Post Status Creation. Upon recently in WordPress i have not had a reason to create a custom post status, i have just used the default statuses of ‘publish’, ‘private’, ‘protected’ but this time i required a custom post status to still be visible to the public but display a notification that it was no longer valid hence the creation of ‘archive’ custom post type.

Custom Post Status Creation

This article will show you how to create custom post status and add that post status to the WordPress post status drop down menu. Registering WordPress custom post status ‘archive’ To create a custom post status in wordpress, you need to first register it in your wordpress theme, once registered at first you will not notice anything different. Once you have added a post to your new status you will notice in the administration index for that post type will display a new link to view all posts with your new status. Add the snippet below to your themes functions.php file. Wordpress - WP - Use file in plugin directory as custom Page Template?

Plugins - How can I force a file download in the WordPress backend? Initiation à la récursivité en PHP : notions, mise en œuvre et utilisation. Nous voici arrivés au stade final de ce tutoriel, et donc à l'aboutissement de nos nouvelles connaissances que nous allons enfin pouvoir mettre en application !

Initiation à la récursivité en PHP : notions, mise en œuvre et utilisation

Car c'est bien beau, la récursivité, mais si ça n'a d'autre utilité que de faire des comptes à rebours, alors c'est très limité… Eh bien non, dans certains cas bien précis, la récursivité se révèle être une arme redoutable (et parfois indispensable) ! Au cours de cette dernière partie, nous allons étudier trois cas (et pas crétins, cette fois) dans lesquels la méthode de la récursivité sera utilisée. Bien sûr, nous définirons pour chaque cas le résultat attendu, nous coderons (euh… je coderai pour vous ), et nous analyserons le code. Cas no 1 : calcul mathématique récursif — les factorielles En mathématiques, la récursivité est un outil très pratique. Utiliser et manipuler XML avec PHP. Ajax Pagination with jQuery & PHP. Pagination is a crucial part of any website, especially if you have hundreds of database records that you want to group and display them as pages, and in modern days with the help of Ajax you can create pagination that doesn’t require any page reloading, users can stay in same page and navigate through vast numbers of records on fly.

Ajax Pagination with jQuery & PHP

In this particular article we will be creating Ajax pagination using jQuery and PHP that can navigate though your database records without reloading the page. This article has been updated, you can find other approach here. We start off by creating a HTML file, which will make the Ajax requests to PHP file and load the response back to the page in a DIV element. We also have a loading image within the page to indicate loading processes. jQuery It’s possible to make Ajax request just using JavaScript, but since most of the websites are built with jQuery support, we will utilize the jQuery’s inbuilt load() method to make Ajax calls to the PHP file. Conclusion. Créer un système de pagination — Seebz's archives — La pagination (afficher des informations sur plusieurs pages) permet de faciliter la navigation et d'économiser les ressources systèmes.

Créer un système de pagination — Seebz's archives —

Nous allons voir ici comment faire un système de pagination facilement. Mais quelle est vraiment l'utilité d'un tel système ? Imaginons que vous avez une page qui liste des informations récupérées de la Base de Données (c'est le cas des pages blog et liens sur Seebz.net). Pagination en Ajax sous Wordpress ou ailleurs. Pagination en Ajax sous WordPress ou ailleurs Tutoriel sur la pagination en Ajax Dans cet article, je vais vous présenter la réalisation d’une pagination en Ajax sous WordPress ou sur n’importe quel autre site internet.

Pagination en Ajax sous Wordpress ou ailleurs

Vous verrez, c’est tout simple. La pagination ou navigation en Ajax permet de charger du contenu sans devoir rafraîchir la page, cela rend le site plus dynamique, attractif et réactif pour l’utilisateur. C’est vraiment un plus non négligeable. WordPress: AJAX pagination with jQuery. Implementing an AJAX pagination system in WordPress is usually achieved by fetching the HTML content of every page linked by the pagination elements.

WordPress: AJAX pagination with jQuery

This is the wrong way to implement this feature. Instead, we can get better results by using the WordPress AJAX APIs. We only need the page number of each link. CSS. Get the lowdown on the key pieces of Bootstrap's infrastructure, including our approach to better, faster, stronger web development.

CSS

HTML5 doctype Bootstrap makes use of certain HTML elements and CSS properties that require the use of the HTML5 doctype. Include it at the beginning of all your projects. <! DOCTYPE html><html lang="en"> ... Mobile first With Bootstrap 2, we added optional mobile friendly styles for key aspects of the framework. To ensure proper rendering and touch zooming, add the viewport meta tag to your <head>. Bootstrap-select. Dependencies Requires jQuery v1.8.0+, Bootstrap’s dropdown.js component, and Bootstrap's CSS.

Bootstrap-select

If you're not already using Bootstrap in your project, a precompiled version of the minimum requirements can be downloaded here. The folks at CDNJS host a copy of the library. The CDN is updated after the release is made public, which means there is a delay between the publishing of a release and its availability on the CDN, so keep that in mind. Tuto Ajax dans WordPress : la méthode simple. Tuto Ajax dans WordPress : la méthode simple. WordPress et Ajax. Tuto Ajax dans WordPress : la méthode simple.

Edit fiddle. Create WordPress Plugins with OOP Techniques. Object-oriented code, among other things, can help organize and add reusability to your code.

Create WordPress Plugins with OOP Techniques

In this tutorial, I will teach you the basics of writing a WordPress plugin using object oriented techniques. We'll be using Dribbble's API as an example for this tutorial. Ready? Benefits of using OOP for WordPress plugins.How to setup a shortcode.How to setup a template tag.How to enable shortcode in WordPress widgets.Real-world example by using Dribbble's API. Before moving forward with this tutorial, you should have at least an elementary understanding of writing a WordPress plugin. Creating WordPress plugins with object oriented code is quite efficient and tidy, when compared to using procedural code.

To write a WordPress plugin, we first need a sense of direction. Object oriented code is based on classes and methods (functions). PHP classes have a constructor function, __construct, which is executed as soon as a new instance of a class is instantiated. L'autocomplétion. À moins que vous ne vouliez écrire toutes les listes de suggestions à la force du poignet, vous devrez tôt ou tard automatiser leur création. Vous avez plusieurs solutions qui s'offrent à vous : soit vous utilisez une source externe à votre site web, qui contient déjà une liste de ce dont vous avez besoin (liste de villes, de pays, de prénoms, etc), soit vous devez traiter la requête directement grâce à AJAX. En général, les recherches sur les sites web sont stockées en base de données. Les plus pertinentes sont gardées, ou sont traitées directement dans le script, puis sont affichées dans notre plugin d'autocomplétion.

Nous allons apprendre à utiliser ces systèmes, et plus encore, à les réaliser. Tutorial JQuery : formulaire de recherche en Ajax. Chose promis, chose due, voici un tutorial pour faire un formulaire de recherche en Ajax avec JQuery et PHP. Idéal si vous avez envie de copier Google Instant, ce type de formulaire permet de faire gagner du temps à vos internautes.

Et comme on commence à en voir un peu partout (Google, Youtube, Itunes…), il risque de devenir un standard. Donc, comme d’habitude, j’ai préparé une démo du tutorial :Demo.