<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									SWELLボタンの計測値を表に投稿として表示したい - SWELLに関する質問				            </title>
            <link>https://users.swell-theme.com/forum/swell-forum/swell%e3%83%9c%e3%82%bf%e3%83%b3%e3%81%ae%e8%a8%88%e6%b8%ac%e5%80%a4%e3%82%92%e8%a1%a8%e3%81%ab%e6%8a%95%e7%a8%bf%e3%81%a8%e3%81%97%e3%81%a6%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84/</link>
            <description>SWELLユーザー限定で利用可能な掲示板です。</description>
            <language>ja</language>
            <lastBuildDate>Tue, 21 Apr 2026 22:58:50 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: SWELLボタンの計測値を表に投稿として表示したい</title>
                        <link>https://users.swell-theme.com/forum/swell-forum/swell%e3%83%9c%e3%82%bf%e3%83%b3%e3%81%ae%e8%a8%88%e6%b8%ac%e5%80%a4%e3%82%92%e8%a1%a8%e3%81%ab%e6%8a%95%e7%a8%bf%e3%81%a8%e3%81%97%e3%81%a6%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84/#post-9134</link>
                        <pubDate>Thu, 23 Nov 2023 07:06:48 +0000</pubDate>
                        <description><![CDATA[できました。動作無保証。
DBの wp_postmeta, swell_btn_cv_data が記入されて ボタン 51832f7e の click を取得してhtmlに出力プラグイン WP CODE の設定をPHPにして、コードを記入、ショートコードを投稿のショートコードブロックに書きます。
// &quot;51832f7e&quot; の click の値を取得 で a49624ef ...]]></description>
                        <content:encoded><![CDATA[<p>できました。動作無保証。</p>
<p>DBの <span>wp_postmeta, </span>swell_btn_cv_data が記入されて ボタン 51832f7e の click を取得してhtmlに出力<br />プラグイン WP CODE の設定をPHPにして、コードを記入、ショートコードを投稿のショートコードブロックに書きます。</p>
<p>// "51832f7e" の click の値を取得 で a49624ef に書き換えると　ボタン ごとに 値が取れます。</p>
<p>装飾は コード内の &lt;p&gt; タグに classか何かをつけてよしなにします。</p>
2832
2833
2834
<table id="table" class="nowrap checkable" cellspacing="0">
<thead>
<tr class="">
<th id="th"><a href="http://localhost:10286/?username=root&amp;db=local&amp;select=wp_postmeta&amp;columns%5B0%5D%5Bfun%5D=&amp;columns%5B0%5D%5Bcol%5D=&amp;where%5B0%5D%5Bcol%5D=&amp;where%5B0%5D%5Bop%5D=LIKE+%25%25&amp;where%5B0%5D%5Bval%5D=click&amp;where%5B1%5D%5Bcol%5D=&amp;where%5B1%5D%5Bop%5D=%3D&amp;where%5B1%5D%5Bval%5D=&amp;limit=50&amp;text_length=100&amp;order%5B0%5D=meta_id"><span>meta_id</span></a></th>
<th id="th"><a href="http://localhost:10286/?username=root&amp;db=local&amp;select=wp_postmeta&amp;columns%5B0%5D%5Bfun%5D=&amp;columns%5B0%5D%5Bcol%5D=&amp;where%5B0%5D%5Bcol%5D=&amp;where%5B0%5D%5Bop%5D=LIKE+%25%25&amp;where%5B0%5D%5Bval%5D=click&amp;where%5B1%5D%5Bcol%5D=&amp;where%5B1%5D%5Bop%5D=%3D&amp;where%5B1%5D%5Bval%5D=&amp;limit=50&amp;text_length=100&amp;order%5B0%5D=post_id"><span>post_id</span></a></th>
<th id="th"><a href="http://localhost:10286/?username=root&amp;db=local&amp;select=wp_postmeta&amp;columns%5B0%5D%5Bfun%5D=&amp;columns%5B0%5D%5Bcol%5D=&amp;where%5B0%5D%5Bcol%5D=&amp;where%5B0%5D%5Bop%5D=LIKE+%25%25&amp;where%5B0%5D%5Bval%5D=click&amp;where%5B1%5D%5Bcol%5D=&amp;where%5B1%5D%5Bop%5D=%3D&amp;where%5B1%5D%5Bval%5D=&amp;limit=50&amp;text_length=100&amp;order%5B0%5D=meta_key"><span>meta_key</span></a></th>
<th id="th"><a href="http://localhost:10286/?username=root&amp;db=local&amp;select=wp_postmeta&amp;columns%5B0%5D%5Bfun%5D=&amp;columns%5B0%5D%5Bcol%5D=&amp;where%5B0%5D%5Bcol%5D=&amp;where%5B0%5D%5Bop%5D=LIKE+%25%25&amp;where%5B0%5D%5Bval%5D=click&amp;where%5B1%5D%5Bcol%5D=&amp;where%5B1%5D%5Bop%5D=%3D&amp;where%5B1%5D%5Bval%5D=&amp;limit=50&amp;text_length=100&amp;order%5B0%5D=meta_value"><span>meta_value</span></a></th>
</tr>
</thead>
<tbody>
<tr class="">
<td id="val" data-text="0">223</td>
<td id="val" data-text="0">45</td>
<td id="val" data-text="0">swell_btn_cv_data</td>
<td id="val" data-text="1">{"51832f7e":{"pv":14,"imp":14,"click":3},"a49624ef":{"pv":1,"imp":1,"click":1}}</td>
</tr>
</tbody>
</table>
<pre contenteditable="false">global $wpdb;

// テーブルのプレフィックスを取得
$table_prefix = $wpdb-&gt;prefix;

// 任意の meta_key
$meta_key = 'swell_btn_cv_data';

// メタデータを取得するためのクエリ
$query = $wpdb-&gt;prepare(
    "SELECT meta_value
    FROM {$table_prefix}postmeta
    WHERE meta_key = %s",
    $meta_key
);

// クエリを実行して結果を取得
$meta_value = $wpdb-&gt;get_var($query);

// meta_value が JSON 形式の場合、デコードして配列に変換
$meta_array = json_decode($meta_value, true);

// "51832f7e" の click の値を取得
if (isset($meta_array)) {
    $click_value = $meta_array;

    // $click_value が数値であることを確認
    if (is_numeric($click_value)) {
        // HTMLの段落に表示
        echo "&lt;p&gt;{$click_value} 人が署名しました&lt;/p&gt;";
    } else {
        echo "&lt;p&gt;署名がありません。&lt;/p&gt;";
    }
} else {
    echo "&lt;p&gt;指定された署名がありません。&lt;/p&gt;";
}
</pre>
<p> </p>]]></content:encoded>
						                            <category domain="https://users.swell-theme.com/forum/swell-forum/">SWELLに関する質問</category>                        <dc:creator>genepine</dc:creator>
                        <guid isPermaLink="true">https://users.swell-theme.com/forum/swell-forum/swell%e3%83%9c%e3%82%bf%e3%83%b3%e3%81%ae%e8%a8%88%e6%b8%ac%e5%80%a4%e3%82%92%e8%a1%a8%e3%81%ab%e6%8a%95%e7%a8%bf%e3%81%a8%e3%81%97%e3%81%a6%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84/#post-9134</guid>
                    </item>
				                    <item>
                        <title>RE: SWELLボタンの計測値を表に投稿として表示したい</title>
                        <link>https://users.swell-theme.com/forum/swell-forum/swell%e3%83%9c%e3%82%bf%e3%83%b3%e3%81%ae%e8%a8%88%e6%b8%ac%e5%80%a4%e3%82%92%e8%a1%a8%e3%81%ab%e6%8a%95%e7%a8%bf%e3%81%a8%e3%81%97%e3%81%a6%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84/#post-9131</link>
                        <pubDate>Thu, 23 Nov 2023 05:21:22 +0000</pubDate>
                        <description><![CDATA[wp_postmeta ボタンの計測結果



 
meta_id
post_id
meta_key
meta_value




 
223
45
swell_btn_cv_data
{&quot;51832f7e&quot;:{&quot;pv&quot;:10,&quot;imp&quot;:10,&quot;click&quot;:2}}]]></description>
                        <content:encoded><![CDATA[<p><span>wp_postmeta ボタンの計測結果</span></p>
<table id="table" class="nowrap checkable" cellspacing="0">
<thead>
<tr class="">
<td> </td>
<th id="th"><a href="http://localhost:10286/?username=root&amp;db=local&amp;select=wp_postmeta&amp;where=LIKE+%25%25&amp;where=click&amp;order%5B0%5D=meta_id"><span>meta_id</span></a></th>
<th id="th"><a href="http://localhost:10286/?username=root&amp;db=local&amp;select=wp_postmeta&amp;where=LIKE+%25%25&amp;where=click&amp;order%5B0%5D=post_id"><span>post_id</span></a></th>
<th id="th"><a href="http://localhost:10286/?username=root&amp;db=local&amp;select=wp_postmeta&amp;where=LIKE+%25%25&amp;where=click&amp;order%5B0%5D=meta_key"><span>meta_key</span></a></th>
<th id="th"><a href="http://localhost:10286/?username=root&amp;db=local&amp;select=wp_postmeta&amp;where=LIKE+%25%25&amp;where=click&amp;order%5B0%5D=meta_value"><span>meta_value</span></a></th>
</tr>
</thead>
<tbody>
<tr class="">
<td> </td>
<td id="val" data-text="0">223</td>
<td id="val" data-text="0">45</td>
<td id="val" data-text="0">swell_btn_cv_data</td>
<td id="val" data-text="1">{"51832f7e":{"pv":10,"imp":10,"click":2}}</td>
</tr>
</tbody>
</table>]]></content:encoded>
						                            <category domain="https://users.swell-theme.com/forum/swell-forum/">SWELLに関する質問</category>                        <dc:creator>genepine</dc:creator>
                        <guid isPermaLink="true">https://users.swell-theme.com/forum/swell-forum/swell%e3%83%9c%e3%82%bf%e3%83%b3%e3%81%ae%e8%a8%88%e6%b8%ac%e5%80%a4%e3%82%92%e8%a1%a8%e3%81%ab%e6%8a%95%e7%a8%bf%e3%81%a8%e3%81%97%e3%81%a6%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84/#post-9131</guid>
                    </item>
				                    <item>
                        <title>SWELLボタンの計測値を表に投稿として表示したい</title>
                        <link>https://users.swell-theme.com/forum/swell-forum/swell%e3%83%9c%e3%82%bf%e3%83%b3%e3%81%ae%e8%a8%88%e6%b8%ac%e5%80%a4%e3%82%92%e8%a1%a8%e3%81%ab%e6%8a%95%e7%a8%bf%e3%81%a8%e3%81%97%e3%81%a6%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84/#post-9124</link>
                        <pubDate>Wed, 22 Nov 2023 14:48:10 +0000</pubDate>
                        <description><![CDATA[こんばんはボタンの計測設定　クリック率を計測する　において。
ボタンがクリックされた数またはそのほかの値を、ボタンの脇や自由な位置に表示したいです。可能でしょうか。
使い方としてはSWELLボタン (署名に賛同する) 234人 等にしたいです。
計測している値があるため、アピールに利用をしたいという考えです。DBの値を見つけました

wp_postmeta{&quot;5183...]]></description>
                        <content:encoded><![CDATA[<p>こんばんは<br />ボタンの計測設定　クリック率を計測する　において。</p>
<p>ボタンがクリックされた数またはそのほかの値を、ボタンの脇や自由な位置に表示したいです。可能でしょうか。</p>
<p>使い方としてはSWELLボタン <em>(署名に賛同する) 234人</em> 等にしたいです。</p>
<p>計測している値があるため、アピールに利用をしたいという考えです。<br /><br />DBの値を見つけました</p>
<blockquote>
<p>wp_postmeta<br />{"51832f7e":{"pv":10,"imp":10,"click":2}}</p>
</blockquote>]]></content:encoded>
						                            <category domain="https://users.swell-theme.com/forum/swell-forum/">SWELLに関する質問</category>                        <dc:creator>genepine</dc:creator>
                        <guid isPermaLink="true">https://users.swell-theme.com/forum/swell-forum/swell%e3%83%9c%e3%82%bf%e3%83%b3%e3%81%ae%e8%a8%88%e6%b8%ac%e5%80%a4%e3%82%92%e8%a1%a8%e3%81%ab%e6%8a%95%e7%a8%bf%e3%81%a8%e3%81%97%e3%81%a6%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84/#post-9124</guid>
                    </item>
							        </channel>
        </rss>
		