Av Wordpress har jag gjort en enkel indexsida som kallar innehållet på tio andra sidor tack vare AJAX. Nu måste jag lägga in detta i Wordpress och
Check out the new WordPress Code Reference! Function Reference/is front page Languages : English • 中文(简体) • العربية • עברית • 日本語 ( Add your language )
$page — Optional. ( string) There are built in conditional WordPress functions for testing for a page: if ( is_page(2) ) { // stuff } Or for testing if a page is a child of a certain. This is the technical support forum for WPML - the multilingual WordPress plugin. Everyone can read, but only WPML clients can post here.
The is_page function is the easiest to understand. This conditional tag returns either true 1 Sep 2015 I cannot seem to get is_page to work inside of functions.php. My code is here: wp_reset_query(); if(is_page('forums')) { add_action( (int|string|int[]|string[]) (Optional) Page ID, title, slug, or array of such to check against. php if (is_page( 'home' )): ?> .