所以,在WordPress的页面,我需要将PDF在WP-内容链接所以我相对URL链接作为href="/wp-content/uploads/2017/03/test.pdf"
如何链接wordpress页面中的图片和页面?
,当我点击它,因为我在本地主机根localhost/test
它需要我localhost/wp-content/uploads/2017/03/test.pdf
(不提供该文件)。但是,我认为这不会成为服务器的问题。不过,我想知道这是否是正确的方法?
而且,所以我在localhost/test/page22
页我现在在页面上,我有一个锚标记为href="/page23"
它需要我page23
正确的,但是当我在不同的子页面是现在说localhost/test/page/page2
,链接需要我到localhost/test/page/page23
这是不正确的,因为它应该是localhost/test/page23
。我如何解决这些问题
[Wordpress中的相对URL]可能的重复(https://stackoverflow.com/questions/17187437/relative-urls-in-wordpress) – tousif