WordPress添加媒体–无法订购所有附件

您好, 我刚刚注意到,在\"添加新媒体\"部分,无法再订购帖子的所有附件。我有几个主题,我已经创建了不同的页面模板,使用帖子附件来显示不同的幻灯片和图库,现在我的主题用户将无法订购附件图像。 如果有任何方法可以这样做,我错过了,请让我知道。 否则,我想问它是否仍然安全,如果在将来的版本中使用旧的媒体窗口是安全的吗?我在一些部分实现了打开旧媒体窗口的按钮,例如: tb_show(\"Edit images\", \"media-upload.php?post_id=\"+postId+\"&type=> which allows ordering the images, so if this functionality will be still available in future updates, I think it would be better to implement these buttons everywhere, rather than changing the way it works and cause more confusions to the users. Thank you very much! I just noticed that in the new Add Media section there is no way to order all the attachments of a post anymore. I have a few themes where I have created different page templates which use the post attachments to show different slideshows and galleries and now my themes users won\"t be able to order the attachment images. You have right. WP team threw this functionality in WP 3.5, but it was used by many themes and plugins, which now stop to works. What can I do in this situation? How can I replace in my theme old \"gallery tab\" functionality? I really can\"t believe this – not only the ordering is not working anymore, but you can\"t save descriptions to the fields in the library anymore. It is not only the \"Insert into post\" and \"Insert gallery\" functionality that the Media window is used for, lots of themes and plugins use the Media functionality for other ways to build galleries and slideshows. It is not good to remove just like this functionality that used to be working and that has been used a lot. I really like the new Media window, but I also need the old functionality to be working. Please at least leave us an option to enable the old Upload/Insert window where we can have the previous functionality still working. Otherwise, I have to instruct my themes\" thousands of users to change the way they create their slideshows. I have to use the new \"Insert gallery\" functionality and maybe perform some regular expression checks into the content to accomplish what used to be working before, which is bad. Updates like this make me stop using the default WordPress built in features and build my own ones. Dennis – It autosaves. Hi Ipstenu, Thanks for your reply! I noticed the autosave functionality for the single image details, which don\"t include the \"Description\" field anymore – they have the Title, Caption and Alt Text, but not a \"Description\" field. Also, I checked the ordering once again – I was monitoring the AJAX autosave requests, but I didn\"t see any AJAX requests when I changed the default order. Also, I checked the database entries for the attachments – all of them have menu_order set to 0 which means that no order has been set to them. It seems that ordering works only for the items that you intend to insert directly into the post, but it doesn\"t work for all the attachments of the post, as it used to work before. Once again, here are in short the main two problems: – there is no way to set general order to all the attachments of a post anymore – there is no Description field anymore Hi, I have the exact same problem, i use attachments on post and display it in gallery using in many websites, i tried to re-order but it didn\"t keep my new> Now i can drag the images but i can\"t keep the order i want. The only way i found is to add : add_post_type_support( \"attachment\", \"page-attributes\" ); 所以我现在可以在媒体部分选择附件的顺序… 但是对于那些在文章中拖动图像的人来说,这不是一个好的解决方案… 按菜单排序u顺序将返回:http://core.trac.wordpress.org/ticket/22608 似乎这个问题: http://core.trac.wordpress.org/ticket/22608 是关于如何显示图库,而不是在所有帖子附件中使用默认的菜单顺序功能。 不管怎样,我已经开始更新我的主题了,有兴趣的人,请点击这里是最适合我的解决方案: –我只执行一次,从幻灯片页面模板(使用后期附件的模板)获取所有页面,并在其内容的开头插入库快捷码。由于这些页面不显示其他内容,因此我可以安全地在其中插入gallery快捷码。 –现在,当我加载页面的图像时,不用使用getu children函数加载页面附件,我使用getu shortcodeu regex()函数进行正则表达式检查,以查找库的短代码并从库中加载图像。 我知道这不是最好的编码解决方案,但我发现这是对用户最好的方法,所以他们不会很困惑,所以我可以确保他们以前的幻灯片仍能正常工作。 WordPress核心开发人员:下次,请确保您不要删除以前一直这样工作的功能–我们喜欢您实现的新功能,但这对开发人员和用户都不好用户删除现有功能。谢谢您! 我同意你的看法,我最近一直在用它来定制公文包帖子幻灯片,这确实是从用户视角出发的最佳解决方案–上传图像、重新排序、完成–而不是玩图库插入等等。另外,从代码角度来看,它非常干净。 我一直希望看到他们一个接一个地实现这个beta版本,但是因为它已经是rc2了,现在还没有。。嗯。真的不知道我应该如何取代这个有用户友好的幻灯片在公文包自定义职位,使用正则表达式如你所建议的,添加自定义元插入画廊短代码,或上传图片分开。所有这些都很笨拙,用户很难理解。 这尤其令人讨厌,因为在\"上传到这篇文章\"中添加了排序,然后可能会使用\"保存\"按钮而不是\"插入到文章中\"http://prntscr.com/ky6ec应该不会很费时。也许有一些钩子可以让我自己添加这个? 我们理解并认识到这些问题。如果这不是最好的用户体验,我们不希望任何用户摆弄短代码或发布内容。关于一个解决方案: 这是特别烦人的,因为添加排序到\"上传到这篇文章\"…应该不是非常耗时的 是的,我们在3.5中这样做。艾米已经和http://core.trac.wordpress.org/ticket/22608回复其他评论: WordPress核心开发者:下次,请确保在从头开始重写用户特性时,不要删除以前像这样工作的功能—这正是我们刚才所做的—我们肯定会错过一两个用例。重新发现用例是beta测试期间最重要的事件之一。 我一直希望看到他们一个接一个地实现这个beta版本,但是因为它已经是rc2了,现在还没有。。嗯。 下次,请报告。我很想早点实现这个,但我们没有想到。我们擅长自己的工作,但有时事情会从我们身边溜走。 已经没有描述字段了 是的,那是故意的。(它在编辑附件时仍然存在,因为它只与该上下文相关。)但是,它很可能返回3.5 RC3。 嘿,安德鲁 是的,我们在3.5中这样做。艾米已经和http://core.trac.wordpress.org/ticket/22608上面。 票现在已经关闭了,是不是已经在3.5-RC2-22928中了?我的意思是,我还是不能再点了,也许我遗漏了什么? 下次请报告。我会喜欢的但我们没有想到。我们做的很好,但有时事情会从我们身边溜走。 是的,很抱歉,我以为你们知道这一点,因为在http://ms-studio.net/notes/on-the-wordpress-3-5-media-uploader/我想他也引起了库珀史密斯的注意。吸取教训! 干杯 对不起!我以为艾米和父母的票有关,http://core.trac.wordpress.org/ticket/22607。 哦,我读过两个都是Koop和我已经讨论过了,但是其中有很多东西比这个特定用例更突出。我只是错过了。有时候我们只需要一个叫醒电话。别误会我的意思,我真的很感谢你现在抽出时间来做笔记。我们会搞定的。 太棒了! 非常喜欢 嗨,安德鲁, 谢谢你们的回复–我真的很感谢你们阅读我们的笔记并考虑我们所说的话。 我只是想说,我没有在测试版中报告这一点,由于旧的媒体窗口仍然存在,出于某种原因,我认为它将留在那里的正式发布。 但是,它很可能会返回3.5 RC3。 如果它返回,那就太好了,因为用户很难在整个媒体库中搜索一个图像来更改其描述,尤其是当他们有成百上千的图像时。 很抱歉,但我并没有从所有的对话中真正弄清楚——菜单排序是否会回到\"上传到这篇文章\"窗口? 谢谢! 我很抱歉地问,但从所有的对话中我都不太清楚-菜单顺序排序是否会回到\"上传到此帖子\"窗口? 是的,这是固定在后备箱中的。预计它将出现在RC3(不久)或最新的夜间版本(现在)。 标记为已解决。谢谢大家

admin_action_{$_REQUEST[‘action’]}

do_action( "admin_action_{$_REQUEST[‘action’]}" )动作钩子::在发送“Action”请求变量时激发。Action Hook: Fires when an ‘action’ request variable is sent.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$_REQUEST['action']引用从GET或POST请求派生的操作。源码(Source)更新版本源码位置使用被使用2.6.0 wp-admin/admin.php:...

日期:2020-09-02 17:44:16 浏览:1159

admin_footer-{$GLOBALS[‘hook_suffix’]}

do_action( "admin_footer-{$GLOBALS[‘hook_suffix’]}", string $hook_suffix )操作挂钩:在默认页脚脚本之后打印脚本或数据。Action Hook: Print scripts or data after the default footer scripts.目录锚点:#说明#参数#源码说明(Description)钩子名的动态部分,$GLOBALS['hook_suffix']引用当前页的全局钩子后缀。参数(Parameters)参数类...

日期:2020-09-02 17:44:20 浏览:1060

customize_save_{$this->id_data[‘base’]}

do_action( "customize_save_{$this->id_data[‘base’]}", WP_Customize_Setting $this )动作钩子::在调用WP_Customize_Setting::save()方法时激发。Action Hook: Fires when the WP_Customize_Setting::save() method is called.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_data...

日期:2020-08-15 15:47:24 浏览:800

customize_value_{$this->id_data[‘base’]}

apply_filters( "customize_value_{$this->id_data[‘base’]}", mixed $default )过滤器::过滤未作为主题模式或选项处理的自定义设置值。Filter Hook: Filter a Customize setting value not handled as a theme_mod or option.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_date['base'],指的是设置...

日期:2020-08-15 15:47:24 浏览:887

get_comment_author_url

过滤钩子:过滤评论作者的URL。Filter Hook: Filters the comment author’s URL.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/comment-template.php:32610...

日期:2020-08-10 23:06:14 浏览:925

network_admin_edit_{$_GET[‘action’]}

do_action( "network_admin_edit_{$_GET[‘action’]}" )操作挂钩:启动请求的处理程序操作。Action Hook: Fires the requested handler action.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$u GET['action']引用请求的操作的名称。源码(Source)更新版本源码位置使用被使用3.1.0 wp-admin/network/edit.php:3600...

日期:2020-08-02 09:56:09 浏览:873

network_sites_updated_message_{$_GET[‘updated’]}

apply_filters( "network_sites_updated_message_{$_GET[‘updated’]}", string $msg )筛选器挂钩:在网络管理中筛选特定的非默认站点更新消息。Filter Hook: Filters a specific, non-default site-updated message in the Network admin.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分$_GET['updated']引用了非默认的...

日期:2020-08-02 09:56:03 浏览:855

pre_wp_is_site_initialized

过滤器::过滤在访问数据库之前是否初始化站点的检查。Filter Hook: Filters the check for whether a site is initialized before the database is accessed.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/ms-site.php:93910...

日期:2020-07-29 10:15:38 浏览:825

WordPress 的SEO 教学:如何在网站中加入关键字(Meta Keywords)与Meta 描述(Meta Description)?

你想在WordPress 中添加关键字和meta 描述吗?关键字和meta 描述使你能够提高网站的SEO。在本文中,我们将向你展示如何在WordPress 中正确添加关键字和meta 描述。为什么要在WordPress 中添加关键字和Meta 描述?关键字和说明让搜寻引擎更了解您的帖子和页面的内容。关键词是人们寻找您发布的内容时,可能会搜索的重要词语或片语。而Meta Description则是对你的页面和文章的简要描述。如果你想要了解更多关于中继标签的资讯,可以参考Google的说明。Meta 关键字和描...

日期:2020-10-03 21:18:25 浏览:1695

谷歌的SEO是什么

SEO (Search Engine Optimization)中文是搜寻引擎最佳化,意思近于「关键字自然排序」、「网站排名优化」。简言之,SEO是以搜索引擎(如Google、Bing)为曝光媒体的行销手法。例如搜寻「wordpress教学」,会看到本站的「WordPress教学:12个课程…」排行Google第一:关键字:wordpress教学、wordpress课程…若搜寻「网站架设」,则会看到另一个网页排名第1:关键字:网站架设、架站…以上两个网页,每月从搜寻引擎导入自然流量,达2万4千:每月「有机搜...

日期:2020-10-30 17:23:57 浏览:1298