简体   繁体   English

Wordpress中的图像媒体和自定义帖子类型

[英]image media and custom post type in wordpress

I am looking for some help / thoughts. 我正在寻找一些帮助/想法。 I am building a travel site for a client who will continue to add content to the site when it is finished. 我正在为客户构建旅游网站,该客户将在完成后继续向该网站添加内容。 At the moment there are 600+ images, just in one region, when the site is up and running there will be over 20 region's, and so a lot of images. 目前,仅在一个区域中就有600多个图像,当站点启动并运行时,将有20多个区域,因此有很多图像。 Is there a way to section the images so that when the client wants images from the USA, that is all they see in the "Insert Media" window. 有没有一种方法可以分割图像,以便当客户要从美国购买图像时,即是它们在“插入媒体”窗口中看到的全部。 I am using Custom Post Types for the sections. 我在各节中使用“自定义帖子类型”。 Does anyone have any thoughts and advice. 有没有人有任何想法和建议。

I would hope there is a plugin to achieve this, as to be honest I do not want to mess around with any core files in PHP. 我希望有一个插件可以实现此目的,老实说,我不想弄乱PHP中的任何核心文件。

Thanks John 谢谢约翰

For your issue, you can separate images in post. 对于您的问题,您可以在帖子中分开图像。 For example, Create one post USA and upload all USA region related images into it and there is one option in media to view all images from post.you can create multiple post for multiple region. 例如,创建一个美国邮政并将所有与美国地区相关的图像上传到其中,媒体中有一个选项可以查看该邮政中的所有图像。您可以为多个区域创建多个邮政。

And Even you can fetch all images from single post too in wordpress. 甚至您也可以在wordpress中从单个帖子中获取所有图像。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM