ワードプレスで問題が発生したのは初めてです。私はEXEC-PHP
プラグインを使用php
して myに書き込み、text editor
それを介してmyfetched records
から持っていdatabase
ます。今、私は別の場所からposts
持っているものを共有したいと思います. そのために、 プラグインを使用しました。これで、ループ内の短いコードを使用して、すべての を表示しましたが、投稿を共有して任意のソーシャル サイトから開くと、ワード プレス サイトに誘導されますが、表示されます。これは、データを取得して投稿を共有するために使用している です。fetched
database
social sites
social 9
social icons
post
no content
code
<?php
global $wpdb;
$items_per_page = 10;
$id_post = isset( $_GET['id'] ) ? abs( (int) $_GET['id'] ) : 1;
$page = isset( $_GET['cpage'] ) ? abs( (int) $_GET['cpage'] ) : 1;
$chapter = isset( $_GET['chapter_no'] ) ? abs( (int) $_GET['chapter_no'] ) : 1;
$bookName= isset( $_GET['book'] ) ? urldecode ( $_GET['book'] ) : 1;
$offset = ( $page * $items_per_page ) - $items_per_page;
$query = "(Select id, hadith_no, content FROM data WHERE book='$bookName' AND chapter_no='$chapter')";
$total_query = "SELECT COUNT(*) FROM (${query}) AS combined_table";
$total = $wpdb->get_var( $total_query );
$latestposts = $wpdb->get_results("Select id, hadith_no, content FROM data WHERE book='$bookName' AND chapter_no='$chapter' LIMIT $items_per_page OFFSET $offset");
foreach ($latestposts as $latestpost) {
echo $latestpost->hadith_no." ".str_repeat(' ', 140)." <a href='http://localhost:8082/tps/permalinks/?id=$latestpost->id'>Permalink</a> ".$latestpost->content."<br>";
$text = $latestpost->content;
$words = extractCommonWords($text);
echo "Tags: <a>" .implode(' , ', array_keys($words)). "</a>";
echo do_shortcode('[Social9_Share]');
}
?>
誰でもこれで私を助けてください、ありがとう。