问题标签 [wordpress-4.5.2]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - 将 XML 导入 Wordpress,更改原始链接的永久链接
我只是不知道我做错了什么。
我有最新的 xampp,还有 wordpress 4.5.2,我制作了一个 XML 文件,其中包含我需要导入的所有帖子,但是当我导入它时,永久链接被切断了中间部分。
在 XML 文件中有标签链接,它定义了每个帖子的永久链接,其结构类似于下面的示例
http://localhost/site/man-clothes/jeans-pants/ripped/rock-style
http://localhost/site/man-clothes/jeans-shorts/washedout/rock-style
但是当我导入 XML 文件时,永久链接会像这样被截断:
http://localhost/site/man-clothesrock-style
http://localhost/site/man-clothesrock-style
有谁知道为什么wordpress会切断中间部分?我认为它是 .htacess 文件,但我删除并仍然在永久链接中进行此更改。
css - 检查元素和 wordpress 菜单
在两个使用 wordpress 创建并使用相同主题的网站中,将 wordpress 更新到 4.5.2 后,标题菜单消失了。
但是,如果我使用“检查元素”选项,则会显示标题菜单
还有一个问题:是否可以使用 css 重现“检查元素”的功能来显示菜单?“检查元素”的过程是什么?
wordpress - 为什么 WordPress 仪表板中的插件会在实时服务器上中断?
我使用 Brown 主题在本地服务器上开发了一个 WordPress 站点 (4.5.2),仪表板中的所有内容看起来都很好。但是当我将站点迁移到实时服务器时,仪表板中的插件看起来很糟糕,特别是 Visual Composer 和维护。当我使用另一个主题时,例如 21-16,插件看起来不错。这是布朗主题的问题吗?还是直播服务器?
wordpress - Media Library and Featured Image Issue
I just downloaded a new version of WordPress 4.5.2 and started developing a theme but when I transferred it to the live I cannot upload images on the Post's featured thumbnail same as well on the Media Library.
When I try to upload an image on the Post's featured thumbnail I always got this error:
I have changed the file permission to 777 on /wp-content/uploads/, switch themes and disabled plugins but it still not working.
Any ideas from you guys would be great!
Thanks in advance.
wordpress - 为什么我的 $locations[$menu_name] 为空?
我已将菜单名称保存为“main_nav”,并尝试获取其中的所有项目:
但我得到null
了$locations[$menu_name]
。任何想法我错过了什么?
wordpress - Wordpress get_permalink - 总是返回第一个帖子而不是父页面?
我在“阅读设置”中将自定义页面“myblog”设置为“帖子页面”,但为什么我总是得到“myblog”的第一篇文章而不是“myblog”本身?
它应该是:
知道为什么以及如何解决这个问题吗?
wordpress - WordPress - 如何防止表单重新提交?
如何防止在 WordPress 中重新提交表单?
我有一个带有表单的自定义页面:
无论您是否提供了所有必填字段的信息,当您单击刷新按钮时,您总是会弹出“确认表单重新提交”。
有任何想法吗?
编辑:
重定向:
错误:
警告:无法修改标头信息 - 标头已由 /var/www/project-path/wp-includes/embed.php:363 中的 /var/www/project-path/wp-includes/pluggable 发送。 php上线1167
php - WordPress - 为什么我的自定义函数被调用两次?
为什么我的自定义函数在 WordPress 中被调用了两次?
例如我在functions.php中有这个函数:
我的模板:
提交表单后,<p class="alert alert-danger"><span class="close" data-dismiss="alert">×</span> Work NOT submitted! Please correct the error(s) below.</p>
我的屏幕上会出现两次。一个在html 标签之前,另一个在正确的位置:
html 标签之前的第一个标签不应该存在,但它确实存在!为什么?我怎样才能解决这个问题?
我希望消息出现在表单标记之前而不是 html 标记之前。