Find Jobs
Hire Freelancers

Custom sidebars using pages custom fields

$14-30 NZD

完了済み
投稿日: 8年以上前

$14-30 NZD

完了時にお支払い
Add a different image to the sidebar on each page using pages custom fields. I have found some PHP code which may be useful but I have been unsuccessful making it work. Here is the code that I have tried to use by placing it in a text box in the sidebar widget: <!-- Sidebar Images --> <div class="side_box" style="display: block"> <?php rewind_posts(); /*enables query data to be passed over again in another loop*/ ?> <?php while (have_posts()) : the_post(); ?> <!-- Do stuff... --> <?php $sidebar_images = get_post_meta($post->ID, 'sidebar-image', false); //get the list of values associated with the key "sidebar-image" if ($sidebar_images){ /*if non-empty list*/ ?> <h3>custom fields:</h3> <ul> <?php foreach($sidebar_images as $sb_image) { echo '<li>'.$sb_image.'</li>'; } ?> </ul> <?php } ?> <?php endwhile; ?>
プロジェクト ID: 8396859

プロジェクトについて

6個の提案
リモートプロジェクト
アクティブ 9年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
nice to help you.
$25 NZD 1日以内
4.9 (434 レビュー)
7.7
7.7
この仕事に6人のフリーランサーが、平均$29 NZDで入札しています
ユーザーアバター
Experienced WordPress developer here, can provide exactly what you need, can you show me the site and please let me know if you have the custom field image type for each page in wp-admin? Thanks
$25 NZD 0日以内
4.9 (89 レビュー)
5.9
5.9
ユーザーアバター
A proposal has not yet been provided
$21 NZD 1日以内
0.0 (0 レビュー)
0.0
0.0

クライアントについて

NEW ZEALANDのフラグ
Hamilton, New Zealand
5.0
4
お支払い方法確認済み
メンバー登録日:6月 23, 2015

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。