首页 文章
  • 0 votes
     answers
     views

    如何在wordpress中获取自定义查询的帖子数?

    当我尝试在wordpress中获取自定义查询的帖子计数时,我得到以下错误作为输出 . Warning: array_map(): Argument #2 should be an array in /Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-includes/class-wp-query.php on line 1918 Warning:...
  • 0 votes
     answers
     views

    从wordpress the_title()返回特定字符前的单词;

    我试图在WordPress the_title() 中的特定字符之前获取单词 . 我的WordPress帖子 Headers 总是看起来像“如何 - 让事情发生” . 如何在PHP中的“ - ”之前返回所有单词,例如从“如何制作东西”中获取“如何” 我试图在“ - ”之前使用所有单词,在帖子页面中使用关键字 . 我在这里看到了类似的解决方案:Get first word in string ph...
  • 0 votes
     answers
     views

    包含php变量的$ _POST []数组错误

    我试图在$ _POST []中内爆一个数组 . 我在循环中执行此操作,在~31个数组中搜索值... $ _ POST ['1'],$ _POST ['2'],$ _POST ['3']等 . 我试图这样做: while($i <= $_SESSION['daysInMonth']){ $month = $_SESSION['month']; $day = $i; $names = impl...
  • 0 votes
     answers
     views

    将3个选择值内嵌到一个字段错误中

    我目前正在尝试将3个选择值放入一个字段中 . 我试图通过破坏 Value 来做到这一点;但是我得到一个错误说: “警告:implode()[function.implode]:传递的参数无效” 更新后的版本 <script> function datepopulate(){ var day = document.getElementById('airdate_day').value...
  • 1 votes
     answers
     views

    PHP警告:implode():传递的参数无效

    我每次访问我的wordpress网站时都会在apache日志中收到此警告: [error] [client myiphere] PHP警告:implode():在第16行的/var/www/mysitepath/wp-content/themes/mytheme/noscript/views/list-view.php中传递的参数无效,参考文献:http ://www.example.com/ ...

热门问题