我正试图用PHPcode将外部图像上传到Wordpress数据库
这是我尝试用于它的代码:
<?php
include ("../wordpress/wp-includes/post.php");
include ("../wordpress/wp-includes/functions.php");
include ("../wordpress/wp-admin/includes/image.php");
// $filename should be the path to a file in the upload director
我目前正在开发两个网站使用Wordpress和托管共享主机谁是推荐给我的几个不同的WP狂热者。
网站1将是一个中高容量的博客.通过我的共享主机的1点击安装,它附带了插件W3 Total ,据我所读到的,它是最好的。
2问题。首先,每次上传主题时,我在admin中都会出现以下错误:
每当我试图更改W3总缓存中的设置时,我都会在管理中得到以下15到20个错误:
Notice: get_theme is deprecated since version 3.4! Use wp_get_theme( $stylesheet )
instead. in /home/jpweber/public_htm
我得到这个错误在我的可湿性粉剂网站上,不知道它的意思或如何去修复它。谁能告诉我这意味着什么,以及如何解决这个问题?
[21-Jan-2016 11:21:18 UTC] PHP Notice: The called constructor method for WP_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /home/sites/website.co.uk/public_html/kit
嗨
今天,我在wp-admin和wp-login.php中的wordpress博客出错了。
Notice: wp_deregister_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (Th
我正在使用的主题插件,这是必不可少的我的主题。它被称为PixGridder Pro。开发者网站瘫痪了,他们帮不了我。
崇拜给出的错误
Fatal error: Uncaught Error: Using $this when not in object context in /home/#####/public_html/wp-content/plugins/pixgridder-pro/lib/functions.php:1053
Stack trace: #0 /home/#####/public_html/wp-content/plugins/pixgridder-pro/lib/
嗨,我是一个初学者,并创建简单的wordpress模板。除了在我的(wp_enqueue('jquery');).文件functions.php文件中以粗体显示的代码行之外,一切都正常工作。当我排除它时,错误就消失了,但是当我查看源代码时,我没有看到wordpress添加的JQuery。不确定这是代码问题还是Jquery版本问题。我试着添加了JQuery迁移插件,但是仍然存在相同的错误。我所有这些都是在拉拉贡安装的本地机器上运行的。下面是我的代码和错误。感谢你的帮助。
这里是我的functions.php文件:
<?php
function load_css()