我正在制作一个wordpress主题,我不知道为什么主题不加载一个基本的wordpress css。我的站点文件css "style.css“是加载的,但是如果我将wordpress php添加到chrome上的主题中,我看到基本wordpress css中的类是add,但他没有样式。例如,我的带有wordpress php的菜单有一个基本标签中的文本装饰。我希望你明白我的意思。
我的标题:
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head
我正在尝试创建我自己的自定义格式的视图输出。我已经在这段代码中取得了部分成功:
my_module.module:
<?php
function my_module_views_api() { // your module name into hook_views_api
return array(
'api' => 2,
// might not need the line below, but in any case, the last arg is the name of your module
'path' =&g
如何在浏览器中更改默认的JavaScript警报以使其更好?我读过,但它是基于点击一个按钮..我指的是警告,它是默认的浏览器,而不需要点击按钮。下面是一个例子:
<?php
include 'libraries/config.php';
$id = $_GET['id'];
$cart_id = $_GET['cart_id'];
$myqry=mysqli_query($conn,"DELETE FROM cart_order_detail WHERE id='$id'
我有一个wordpress代码,我想使用,但我试图给它一些造型。
<?php global $post;
$current_post = $post; // remember the current post
for($i = 1; $i <= 1; $i++):
$post = get_previous_post(); // this uses $post->ID
setup_postdata($post);
// do your stuff here
the_excerpt();
endfor;
$post = $current_post;
我有这个脚本,我在下面找到了它来生成分页,大体上说,它工作得很好,但是因为它是我的一个剪切和粘贴作业,我不知道如何实际生成在脚本中使用变量$pagination回显的链接。
它所呼应的是:
1< a href="index.php?page=2">2< a href="index.php?page=3">3< a hr_ef="?page=2"> Next
其中没有一个是工作的(可点击的)链接,我也希望能够样式化它们,以便宁愿在HTML中输出它们,而不是一个php回声,类似于:
<p><?p