Simple Fields
Show values at post (1 post)

  1. hkieze
    Posted 3 years ago #

    Script 1: get newest post out category 2

    $args = array( 'numberposts' => '5', 'category' =>'2' );
    	$recent_posts = wp_get_recent_posts( $args );
    	foreach( $recent_posts as $recent ){
                   		echo '<div id="newpostmeta"><a>' .   $recent["post_title"].'</a> </div> ';

    Script 2: Show value

    $is_checked = simple_fields_value('PS3');
    if ($is_checked) {
    echo "PS3";
    } else {
    echo "";

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]


    I got checkboxes for each post (4 options: PS3, Xbox360, PC and PS Vita). I want to show these values under the title at each post.

    Title of the post
    value(pc), value(ps3)

    can anyone give me some tips?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic