我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在meta_key字段上使用groupby的WP_Query

I'm setting up an event calendar in WordPress and need to list all the events of the week grouped by the current day. I have events that last only one day and others that last the entire month.

I created the custom post_type "Events" and the custom fields "initial_date" and "end_date". How would I get the query that returns the custom post types "events" for a day but also the ones that are in progress?

近期文章

  • 添加新文本框到Wordpress二十七个标题
  • 删除时键'PRIMARY'的重复条目'0'(codeigniter)
  • SQL查询适用于phpmyadmin但不适用于php
  • 如何显示MySQL表的平均值
  • PHP web api错误数据无法获取登录页面
  • 将Ajax数据POST到公共PHP函数
  • 打开HTTPS后,PHP标题('Location:index.php')无效
  • PHP7卷曲设置
  • 使用Dropzone上传后获取文件名
  • 如何迁移用户? (Symfony + FOSUserBundle)
  • Laravel 5.2生产应用程序部署
  • sql查询显示2个日期之间的所有行
  • Model.php第225行中的Laravel 5.4MassAssignmentException:_token
  • 图像不存储在文件夹中只有名称存储在数据库中
  • Angular http post不与Laravel合作
  • 如何从搜索中获取信息以显示在表格中?
  • 为什么Symfony寻找“addWooklyExercise()”而不是“addWeeklyExercise()”
  • 获取重复的条目错误消息并在if语句中使用
  • 使用<a>作为按钮发送数据表单
  • php电子邮件表单/ if / else if / error messages

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华