php - 销位置 - 滑块销位置问题
问题描述
我使用 PHP 和 WordPress 创建了一个包含三个帖子的滑块。现在,我想用现有帖子之一替换最近的帖子。我该怎么做?
<?php
for ($cnt2 = 1; $cnt2 <= 2; $cnt2++) {
$pin_to = get_post_meta($latest_post_array [$cnt2] ["id"], 'pin_to', true);
$pin_at = get_post_meta($latest_post_array [$cnt2] ["id"], 'pin_slider_no', true);
if ($pin_at == "s0" || $pin_at == "") {
$popupvideoads2 = "N";
} else {
if ($pin_to > $today) {
$popupvideoads2 = "Y";
}
}
}
解决方案
推荐阅读
- python - 在 4 GB RAM 笔记本电脑上制作大型机器学习模型
- ios - 注册流程到错误的视图控制器并且也不写入firestore
- reactjs - React 数据内容在回调时消失
- spring-cloud-stream - Cloud Foundry 上的 StreamBridge RabbitMQ 连接被拒绝
- android - Jetpack Compose 道具打字
- ansible - 如何将运行 ansible playbook 的用户添加到组中
- sql - 加入 sql 查询以获取附加列
- java - Oracle Apex、Apache PDFBox java 存储过程问题
- terraform - 在 Terraform 和 Cloudbuild 中找不到 Gsutil
- java - java转换字节海量,在对象中包含一些不同的变量