Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/240.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WordPress 3.1.3和Magic Fields插件-调用多行或标记文本框并将其解析为single.php?_Php_Wordpress_Dom_Html Parsing - Fatal编程技术网

WordPress 3.1.3和Magic Fields插件-调用多行或标记文本框并将其解析为single.php?

WordPress 3.1.3和Magic Fields插件-调用多行或标记文本框并将其解析为single.php?,php,wordpress,dom,html-parsing,Php,Wordpress,Dom,Html Parsing,几天以来,我一直在为我的一个朋友制作WordPress页面,他拥有一家时间工作公司。他们正在使用一些软件,也就是说,在最后,生成一个包含一些表、跨距等内容的HTML文件。这个文件实际上是一个模板,他们用来搜索新员工。为了确保,他们没有两次设置招聘广告的工作(与两个不同的网站合作),我提供给他们,设置一个字段来输入HTML源代码,其中包含CSS、表格、跨度和许多“脏”东西。因为桌子不是 非常优化的搜索引擎(不要谈论W3C),我告诉他们使用div我犯了多大的错误:) 无论如何:我使用了一些代码行,如

几天以来,我一直在为我的一个朋友制作WordPress页面,他拥有一家时间工作公司。他们正在使用一些软件,也就是说,在最后,生成一个包含一些表、跨距等内容的HTML文件。这个文件实际上是一个模板,他们用来搜索新员工。为了确保,他们没有两次设置招聘广告的工作(与两个不同的网站合作),我提供给他们,设置一个字段来输入HTML源代码,其中包含CSS、表格、跨度和许多“脏”东西。因为桌子不是 非常优化的搜索引擎(不要谈论W3C),我告诉他们使用div我犯了多大的错误:)

无论如何:我使用了一些代码行,如:

<?php
include('simple_html_dom.php');
$html = new simple_html_dom();
$html->load_file('http://www.prophiler.de/rentaman2/stellenanzeige');

foreach($html->find('SPAN.SHeadcompany') as $a)
{
            $a->class = null;
            $a->innertext;
            echo $a->innertext = '<div class="head1">' . $a->innertext . '</div>';
}
... continue with all SPAN classes...
?>

解析文件并将内容写回div类。 我的问题是调用并解析定制字段。这就是为什么我通过一个不可见的WordPress页面调用HTML文件。这只是为了演示。现在我想直接调用字段值并将其附加到解析器中。我不明白,因为我对PHP很陌生

有人能给我一些关于如何处理的提示吗