TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 640
  • Total: 641
  • tino

[Block] code to display a wordpress post in tinyportal

Started by PeterLawrence, November 04, 2008, 12:30:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IchBin

Yes, it only grabs the specific post which is the ID you put in.

PeterLawrence

This should be possible by changing the line which reads...
$Post_ID=$DefaultPost_ID;
To something like this, which queries the database for the last entry.

$qry_get_number = mysql_query("select max(ID) from ${wp_db_prefix}posts");
$lst_id= @mysql_fetch_row($qry_get_number );
$Post_ID=$lst_id[0];

This website is proudly hosted on Crocweb Cloud Website Hosting.