• Resolved Sina Rajabdoust

    (@sinarajabdoust)


    hi ??

    Im trying to integrate my portal with wordpress
    but i have a problem :

    how can i echo my content in boxes like posts?

    Picture Here:
    https://www.4shared.com/download/LN54dlRZ/1_online.png?tsid=20131114-054747-2468874b

    code example:

    <?php
    require('../wp-blog-header.php');
    if(is_user_logged_in())
    {
    	get_header();
    	get_sidebar();
    	?>
    
    	<form method="POST" action="courses-management-sc.php">
    	<input type="text" name="course_name" />
    	<input type="submit" />
    	</form>
    
    	<?php
    	$res = $wpdb->get_results("SELECT * FROM sina_courses", ARRAY_A);
    	foreach($res as $value){
    		echo "</br>*".$value['course_name'];
    	}
    
    	echo("</br>you are loginned </br>");
    	echo("your user id is: ".$user_ID."</br>");
    	echo("your username is : ".$user_login."</br>");
    
    	get_footer();
    }
    else
    {
    	echo("plz login");
    }
    ?>

    i found get_header & get_footer & get_sidebar
    but didnt find anything for echoing content in boxes…
    {for example in E107 (e107.org) we have : $ns->tablerender($title, $content); }

    i can echo divisions with post styles
    but i want to know is there any other way?

    i searched forum much and didnt find my answer..
    im sorry if this is a repeating topic, and for my awful English ??

  • The topic ‘Integrating WordPress in non-WordPress Page’ is closed to new replies.