我试图在wordpress中构建一个主题,但是当调整我的浏览器窗口大小时,我想不出如何调整背景图像的大小。当我获得图像并将其设置为“full”或任何其他预设大小时,我不会调整大小:
在我的front-page-php:里
<?php
// check if the post or page has a Featured Image assigned to it.
if ( has_post_thumbnail() ) {
// the_post_thumbnail();
$backgroundImg = wp_get_
当我尝试运行gatsby develop时,会得到以下错误:
TypeError: Cannot destructure property 'fields' of 'nodesType' as it is undefined.
at generateNodeQueriesFromIngestibleFields (/Users/repoFolder/Work/gatsby/node_modules/gatsby-source-wordpress/src/steps/ingest-remote-schema/buil
d-queries-from-intr
所以我在Wordpress中使用AnythingSlider。这就是为什么我尝试从原始帖子中调用缩略图的原因。任何滑块都会像这样配置缩略图导航:
function formatText(index, panel) {
return index + "";
}
$(function () {
$('.anythingSlider').anythingSlider({
navigationFormatter: formatText // Details at the top of the file on this use
我正在使用xyz-snippet在一些Wordpress页面中插入一些php代码(post表单和处理post请求)。在我正在做的工作,这是必要的,采取从用户的输入(与post表单),并处理它,并根据他们的输入重定向到另一个页面。我尝试了header()函数,但它不起作用,现在我尝试这样做: if (empty($entry)){
echo('<h1>I am empty and should be redirecting now</h1>');
$url = 'https://jimmyshapopi.com