问题标签 [featured]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
image - 如何使 WP 主题中的特色图像流血到边缘
嗨,我正在定制一个 WP 主题,我正在考虑尝试使上传到帖子的特色图像流血到内容区域的末尾。举一个很好的例子,看看这个具有相同功能的博客。
http://www.webdesignerdepot.com/2013/08/funny-typographic-beard-guide/
网址中的特色图片列在帖子标题上方,您会注意到它不占用内容的填充。
wordpress - 改变 WooCommerce 特色产品风格?
我一直试图解决这个问题几个小时没有运气。
现在 WooCommerce 特色产品小部件垂直显示产品。我想让特色产品并排(水平)显示。
我已经到处找了我能想到的地方,我只是找不到我需要编辑来实现这一点。
所有帮助将不胜感激!
drupal-7 - 将一篇文章标记为精选以在 Drupal 7 的分类登陆页面上显示
在我的分类(类别)登陆页面上,我按时间顺序列出了所有文章。但我也想在登陆页面上显示一篇文章(我选择的)或最新一篇作为特色文章。对于特色文章,我将在文章中显示以下自定义字段:-
- 特色图片
- 标题
- 其他几个自定义字段
我的问题是如何使用可能的自定义循环或任何模块来做到这一点?
magento - 在主页上显示单个产品 Magento(作为特色产品)
好的,直截了当,我实际上需要在主页和产品页面上对我的商店 ( http://www.eggtee.com ) 进行定制。
主页 => 我需要制作“类似的东西”,比如“特色产品”,但实际上并非如此。所以请看下面的图片(我希望我能有这样的东西)
产品页面 => 这是我想要的产品页面
那么,任何人都可以帮助我吗??我已准备好为此付款,请给我报价,..
product - Woocommerce 特色产品(按类别)
我正在寻求帮助(谢谢)为“特色产品”编辑 Woocommerce php 小部件。
找到了我认为需要编辑的文件:
问题: 1. 特色产品目前显示所有类别的特色产品。
所需的编辑: 1. 仅显示当前正在查看的类别中的特色产品。
所以这里有一个例子:
我有三类(狗粮,猫粮,其他东西)。
每个类别都有一个类别主页:
> www.mysite.com/dog-food
> www.mysite.com/catfood
www.mysite.com/other-stuff
当我将特色产品添加到“狗粮”类别时,特色产品小部件还包括特色猫粮产品。如果客户没有猫,这将毫无用处。
我希望特色产品小部件仅显示当前正在查看的类别中的特色产品 - 所以狗粮客户只会看到狗粮特色产品(而不是猫粮或其他东西)
我(认为)我需要在上面提到的 PHP 文件中添加一个参数。这是在文件中找到的当前代码:
我试过添加:
但这没有用。
任何人都可以提供的任何帮助将不胜感激。
提前谢谢了。
image - 需要在 wordpress 中更改特色滑块图像大小
我需要在我的航空分类广告网站上更改特色图片的大小。我是一名飞行员,我不知道编码的东西。我在 stackoverflow 上看到了其他线程,我尝试进入 wordpress 后端的媒体设置,但这并没有改变特色滑块上图像的大小。
有人可以确切地告诉我如何以编程方式进行操作。我应该使用哪个文件和什么类型的代码。
image - 如何在 Wordpress Single Post 页面中隐藏特色图片?
有一些关于此的帖子,但解决方案对我不起作用..
我将不胜感激您的帮助..
hier 是代码@my single.php
<?php echo '<div class="thecontent">' . apply_filters('the_content', get_the_content()) . '</div>';
我试过这个,但我不知道如何替换代码?
php - 如何在 Wordpress 上使用 php 将图像设置为帖子的特色图像?
我想将图像设置为帖子的特色图像。我在 wordpress 文档中找到了这段代码,它将图像保存在上传目录中,但图像不再设置为帖子的特色图像(代码中的 37)。
你能看看吗?多谢
image - Wordpress error: Object of class WP_Error could not be converted to int
I'm having a problem with setting feature image, I am using the similar submit several times in the same page to submit post outside the admin area and not getting any errors, only this submit form.
After tracing errors report I found the problem with _get_non_cached_ids
function which is in wp-includes/functions.php on line 3816
(twentyeleven theme)
Error says: Object of class WP_Error could not be converted to int
When I test it I got that it is not int
, then I try to discover the function casing that error
Below the _get_non_cached_ids
function with my test code
I tried the code and got a message saying:
No file was uploaded.
HOW NO FILE WAS UPLOADED even the image uploaded successfully and attached to the post, but it didn't appear as Featured image
and in the admin area for edit post I got an error in the Feature image area says:
Object of class WP_Error could not be converted to int in SITE_ROOT/public_html/wp-includes/post.php on line 4294
I test if is_int and it was int
Note that in the _get_non_cached_ids
, exit happening only if there is a problem, which means that if there is no problem the code don't enter to _get_non_cached_ids
function at all
image - WordPress 特色图片
我正在使用 Media Grid pulugin 并已使用此代码使用 Contact Form 7 短代码填充下一页上的表单字段
所以我现在要做的是,当单击“请求信息”链接时,会在表单旁边显示该帖子的图像。我不确定如何让 $mg_id 传递到下一页或如何在下一页上捕获它。我不确定如何问这个问题。我知道我可能比现在更难了。我曾尝试使用 query_args,但它会提取我想要显示的单个图像的所有图像,该图像来自在 href 中回显的特定帖子。我希望有人理解这一点,就像您在商店中单击图像并打开带有图像的页面一样。我可以找到如何从媒体网格中获取多个图像,而不仅仅是灯箱中的单个图像。提前致谢