Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
For questions about the server-side programming language that the WordPress core, plugins and themes are written in. Questions about using PHP outside a WordPress context are off-topic but might be asked on Stack Overflow.
0
votes
1
answer
1k
views
WP Subtitle Plugin Problem
php get_header(); ?>
<div class="title-posts-container">
<h2 class="title-posts"><?php the_title(); ?></h2>
<p class="title-posts-strap"><?php the_subtitle(); ?></p>
</div>
<div class="content">
<? … php the_title(); ?></h2>
<p class="title-posts-strap"><?php the_subtitle(); ?></p>
</div>
<div class="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?> …
1
vote
3
answers
2k
views
Custom Menus: dynamic highlighting problem with custom home link
I'm currently implementing wp_nav_menu - all has gone well save for dynamic highlighting. The menu code looks like this (when home, which is a custom link, is selected):
<div class="menu-header">
<u …
5
votes
2
answers
2k
views
Syntax error, unexpected 'class' (T_CLASS) on line 1 after upgrade to php 5.6.4
php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<? … php echo $this->get_field_id('fss_numposts'); ?>" name="<?php echo $this->get_field_name('fss_numposts'); ?>" type="text" value="<?php echo attribute_escape($fss_numposts); ? …
4
votes
4
answers
25k
views
Get custom post type by category in a page template
php
$args = array( 'post_type' => 'portfolio', 'posts_per_page' => 10 );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
the_title();
echo '<div class="entry-content" … php
// CUSTOM POST TYPE 1
add_action('init', 'portfolio_register');
function portfolio_register() {
$args = array(
'label' => __('Portfolio'),
'singular_label' => __('Portfolio …