<?php $children = get_pages(‘child_of=’.$post->ID.’&parent=’.$post->ID); if( count( $children ) != 0 ) { ?> <ul> <?php foreach ($children as $pagg) {…
First row : green ul li:first-child { color:green; } Last row : Red ul li:last-child { color:red; } Alternate row…
$my_id = 100; $post_id_100 = get_post($my_id); $content = $post_id_100->post_content; $content = apply_filters(‘the_content’, $content); $content = str_replace(‘]]>’, ‘]]>’, $content); echo $content;
<div> <?php global $post; $myposts = get_posts(‘post_type=page&include=100,200,300&orderby=post_date&order=ASC’); ?> <ul> <?php $posts_counter = 0; ?> <?php foreach( $myposts as $post )…
<script type=”text/javascript”> jQuery(“.pageclass #pageid fieldset:first”).attr(“id”, “users-profile-core”); //add attribute like id in first jQuery(“.pageclass #pageid p:last”).addClass(“bottom”); //add class in last p…