カスタムフィールドで画像を記事末尾に追加するプラグイン。 以下の記事のサンプルコード
[Wordpress]メディアライブラリから画像を選べるカスタムフィールドを作成する
imagefield.phpとimagefield.jsをwp-content/plugins/imagefield/内に配置し、プラグインを有効化して使用する。
- Step1 カスタムフィールドを作成する
| // | |
| // AppDelegate.swift | |
| // StatusBarTest | |
| // | |
| // Created by hiroki on 2021/02/11. | |
| // | |
| import UIKit | |
| import SwiftUI |
| // | |
| // ContentView.swift | |
| // StatusBarTest | |
| // | |
| // Created by hiroki on 2021/02/11. | |
| // | |
| import SwiftUI | |
| struct ContentView: View { |
| javascript:(function(){alert('¥'+Array.from(document.querySelectorAll('.a-offscreen')).reduce((a,c)=>a+Number(c.innerText.replace(/[^0-9]/g,'')),0))})(); |
| import numpy as np | |
| from time import time | |
| np.__config__.show() | |
| np.random.seed(0) | |
| size = 4096 | |
| A, B = np.random.rand(size, size), np.random.rand(size, size) | |
| N = 20 |
カスタムフィールドで画像を記事末尾に追加するプラグイン。 以下の記事のサンプルコード
[Wordpress]メディアライブラリから画像を選べるカスタムフィールドを作成する
imagefield.phpとimagefield.jsをwp-content/plugins/imagefield/内に配置し、プラグインを有効化して使用する。
| #!/usr/bin/python | |
| import urllib.parse | |
| import urllib.request | |
| import base64 | |
| import sys | |
| import os | |
| def mydns_register_validation(master_id, password, domain, validation, cmd = "REGIST"): | |
| url = "https://www.mydns.jp/directedit.html" |
| import Foundation | |
| struct OrderedDictionary<Key: Hashable, Value>: Sequence, IteratorProtocol, CustomStringConvertible { | |
| private(set) var keys = [Key]() | |
| private var dictionary = [Key: Value]() | |
| init() {} | |
| init(dictionary: [Key: Value], order: [Key]) { |
| M502 | |
| M500 | |
| M92 E384 | |
| M203 E30 | |
| M204 R1500.00 | |
| M500 |