Wordpress找到一个特定的链接来编辑它

时间:2014-12-04 22:25:39

标签: php html wordpress hyperlink

我被传递到一个网站,用wordpress编辑,我基本上没有关于wordpress的内容。

我正在尝试编辑网站首页中的链接,但我无法找到此链接。我查看了每个页面的PHP(您可以在wordpress中以每页HTML格式查看您网站的PHP),我似乎无法找到它。

它不在Header.php或footer.php中,甚至不是archive.php,我到处都是。它基本上只是首页中间的一个链接,我似乎无法精确定位(参见图片,链接在红色圆圈中)。

请帮帮我,有快速查找此链接的方法吗?或者您知道这个链接在wordpress仪表板编辑器中的位置吗?

enter image description here

enter image description here

更新12/06/14

我在Frontpage.PHP

中找到了这段代码
<?php`enter code here`
                    foreach ($query as $post) {
                        setup_postdata($post);

                        printf('<div>');
                        printf('<div class="box">');
                        printf('<h4>%s</h4>', $post->post_title);

                        printf('<img src="%s" />', wp_get_attachment_image_src(get_post_thumbnail_id(get_the_id()), 'full')[0]);

                        printf('<p>%s</p>', get_the_excerpt($post->ID));
                        printf('<a href="%s" class="button">Read more</a>', post_permalink($post->ID));
                        printf('</div>');
                        printf('</div>');
                    }

                    wp_reset_postdata();
                ?>

认为这是我必须插入我希望它引导的链接的地方?

1 个答案:

答案 0 :(得分:3)

将鼠标悬停在&#34;外观&#34;在左侧链接,您将看到链接&#34;菜单。&#34;单击此处,您可以编辑已经创建的菜单,或者创建一个新菜单。

通常,WordPress中的内容通过WordPress管理区域输入到连接到网站的数据库中。数据库从您的Wordpress管理员接收信息,并通过PHP文件中的代码处理该信息,然后显示在网页上。这很可能是您无法在PHP文件目录中找到链接的原因。