Themes create the public (front-end) interface for a WordPress site.

learn more… | top users | synonyms

1
vote
1answer
28 views

Understanding and using metaboxes in posts

I am developing my first theme that is not dependent on a parent theme but I am running into some back-end problems. I'm trying to add a metabox to all posts that are being written. This question is ...
1
vote
1answer
16 views

Is there a way to list all actions registered by a plugin or theme?

I'd like to override a function registered using do_action() by a third party theme or plugin. remove_action() looks to be the way to do this but its not working in my particular case. Is there a way ...
0
votes
2answers
29 views

Best way to allow for extended use of Wordpress functions inside single.php

I am building a more-or-less distinguishing layout which forces me have a header far above the content in the DOM. A structure as follows: <?php get_header(); ?> <div id="wrapper"> ...
0
votes
1answer
43 views

Why do WordPress developers use so many opening and closing PHP tags when developing themes? [duplicate]

This is a code set I copied from Twentyeleven theme. <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> ...
0
votes
1answer
38 views

Specify a particular page to list all custom types

In WordPress I can specify which page is used as my home page and which page will list all my posts. I have created a Custom Post Type called 'Property'. I know I can access all of the posts with the ...
0
votes
0answers
50 views

TwentyFifteen color schemes with custom header default-image

I'm writing a child theme off twentyfifteen and customizing the color schemes. What I'd really like to do is change the default custom header image when the user changes the color scheme. This seems ...
0
votes
1answer
220 views

page.php showing loop of posts and not page content

My front page displays the latest posts using index.php. My page.php contains the wp_header up top, the wp_footer below, and this in between: while (have_posts()) : the_post(); ...
0
votes
1answer
44 views

Get title attribute from galleries

I managed to get all the images of a gallery from another page using get_post_gallery() and I entered a description for each of them in the edit gallery window. I tried using get_image_tag() to get ...
0
votes
2answers
123 views

Create image with imagepng() (fails at header)

I've been struggling with some code for a custom theme. The result: Create an image with text. The problem: Fails at header: code on production. The funny thing is that the function works perfectly ...
0
votes
1answer
58 views

Injecting pre-defined text from custom page template to editor

I am creating a custom page template: < ?php /* * Template Name: sliding content * Description: Sliding category contents */ get_header(); ?> <div id="primary" class="content-area"> ...
0
votes
1answer
17 views

Is there a general way to get a themes primary colour?

I'm writing a plugin and I'd like it to play nicely with wordpress themes by adopting the themes colour schemes. To be specific, not just use a HTML element that was incidentally styled by a themes ...
0
votes
0answers
20 views

show custom taxonomies in hierarchy

I am developing a theme and here is what i want to achieve: Lets say I have a taxonomy hierarchy as follows: -sports --bats --pads --balls -surgical --scissors etc. How can I shows posts ...
0
votes
0answers
18 views

Mutlisite in wordpress is not working

I have created wordpress multi-site. but when i tried open example.com/au. it gives me server 404 error. I already enable mod_rewrite and start the apache service. I am using ubuntu14.0 and my root ...
0
votes
0answers
19 views

references to fonts and images break down when I use the remote host

I've made a theme for my site and uploaded the theme to a remote installation on byethost. In the theme header.php file, I referred to the title image with <link rel="shortcut icon" ...
7
votes
2answers
133 views

Caching and Versioning for rtl.css

I am using filemtime() to add a version number for different .css and .js files in a custom WordPress theme. I used the accepted answer described here as a guideline; however, I use the ...
0
votes
1answer
105 views

wp_nav_walker that interacts with widgets to setup mega menu

I'm a newbie WordPress developer working on a WordPress theme project that demands mega menus as part of the main navigation. I'm done with the front-end stuff, and now I'm trying to explore the ...
0
votes
2answers
189 views

How to add custom page elements to the WYSIWYG editor?

On a plugin-less Worpress installation the WYSIWYG editor allows to write a page down from top to bottom with style buttons (lists, font, italics, bold, add picture ...). What I am missing is the ...
1
vote
0answers
28 views

how to setup custom content structures

I have some custom pages I need to develop, and I want them to be easily edited by my client. The problem is that the markup is fairly complicated, I want to be able to give them the ability to edit ...
-2
votes
1answer
67 views

Why is my container argument not working for wp_nav_menu() [closed]

The following code outputs a menu but the container <nav> tag is missing. $menu_settings = array( 'menu' => 'Packages', 'container' => 'nav', 'container_class' => '', ...
0
votes
0answers
68 views

Multiple sub-navigation menus in page

I am developing a WP theme. I need to have a main menu in 'pages' (already done) and have some sort of sub menu made of tabs in the 'page'. I thought about having multiple tab navigation menus and ...
0
votes
0answers
21 views

No Styles Working on Wp-Signup.php [MU]

I'm not sure why, and it's kind of putting me off getting into theme development, but I can't seem to work out how to customise wp-signup.php? I have looked everywhere on the internet but I can't find ...
0
votes
1answer
190 views

Theme now uses require.js and enqueue script no longer works

I created a small custom script that fixes a sidebar at different point depending on if there is a banner. I used enqueue script in my child functions file and then a custom.js file with my ...
0
votes
2answers
271 views

How to fix Wordpress images not showing up in local hosted XAMPP server?

I have recently been trying to establish a working method of developing Wordpress sites locally by making use of an XAMPP server. The issue is that any images that I attempt to use refuse to show up ...
0
votes
1answer
175 views

How can I remove the Static Front Page option from the Customizer

In Wordpress 4.1's Theme Customizer there's a Static Front Page option. I've set up my theme to have a custom front page (via front-page.php in the theme) so I don't want this option to be available ...
0
votes
0answers
49 views

Pagination breaks custom sub menu

I've got the following class which allows me to make a specific sub menu. class Custom_Walker_Nav_Sub_Menu extends Walker_Nav_Menu { var $found_parents = array(); function start_el(&$output, ...
0
votes
1answer
116 views

Theme development: menu links a tabbed page with page jumps

This might sound like a basic question, but It is my first time developing for wordpress: I am developing a theme, I need to have: A landing page with navigation menu Another page that the landing ...
0
votes
1answer
58 views

Why is this coming back as null? Thats wrong. There is one post

I have a category, called events. It is assigned to one post. So I created the following loop: $args = array ('category_name' => 'events', 'posts_per_page' => 4, 'orderby' => 'date', 'order' ...
-1
votes
1answer
29 views

Why am I getting posts back when I shouldnt

I have the the following variables being populated: $posts = wp_get_recent_posts(array ( 'numberposts' => 4, 'post_status' => 'publish' )); $categoryPosts = wp_get_recent_posts(array ( ...
0
votes
1answer
46 views

get_pages() Returns Only One Item

I'm trying to list the children of a specific parent page for use in a shortcode using get_pages(). Unfortunately, only one page is being displayed though there are many more that should be displayed. ...
0
votes
2answers
97 views

Move theme templates to subfolder without losing page associations

I'm aware that templates can reside in a subfolder of a theme since 3.4. My theme has been about for a while and all our templates reside in the theme directory. I'd like to tidy this up by adding ...
0
votes
1answer
45 views

Using the media library for theme customization

I'm using Underscores to build a theme and I've added an image selector to the customization section, which appears just like the default Background Image section, except clicking 'Select Image' ...
0
votes
1answer
23 views

Can you create a custom page with content in the center already defined?

Is this possible? So for example, you select from the templates a page called "custom-blog-home" and on this page in the centre you have two section, one is a set of blogs being pulled in and styled ...
0
votes
2answers
37 views

$_POSTing to and modifying the WP search results page

I have a site which uses post-name permalinks. If I use the built in search I am taken to the url www.mysite.com/search/searchterm I have a form which I am using as a custom search popup built into ...
0
votes
0answers
75 views

Insert <!--nextpage--> after every x img tags in a post

I want to insert <!--nextpage--> after every 10 image tags in a wordpress post (if there are 30 images, I'll get 3 pages), but I can't seem to figure out how to do it. I found a php function that ...
0
votes
4answers
782 views

Check if current category has subcategories

I have found the following piece of code in the WP Knowledge Base theme in order to show subcategories of a parent category. The problem is that this only works for the first level of hierarchy, so I ...
1
vote
1answer
94 views

Skt full width basic slideshow problem

Background: I am making a photography website and thought that skt full width is a good theme for the landing page. It worked out all right. Then I started to get fancy. I wanted my client to be able ...
1
vote
0answers
25 views

Wp_customize_image_control Use Add Media

Is there a way to use the Add Media in the wp_customize_image_control for Theme Customizations? The default image_control is very bare bones and only allows uploading of an image. There's no selection ...
0
votes
1answer
39 views

Confused by the behaviour of “front page” / “home” templates

I stumbled upon a confusing issue while trying to customize the appearance of the front page of my blog (blog.example.com) without changing the behaviour of the other blog posts index pages ...
1
vote
0answers
50 views

Theme elements not translating

Ive got a theme that is set-up for translating but didn't come with any translations. I used poedit to automatically detect the strings, and subsequently translated it in full. However certain ...
0
votes
0answers
98 views

How to add a custom HTML attribute to a parent element of wp_nav_menu?

I am using wp_nav_menu and I want to add a custom attribute that I need for uikit drop down component (data-uk-dropdown attribute) This is how the HTML should look like: <ul class="uk-navbar-nav ...
0
votes
2answers
47 views

What is the best way mark entries as featured?

In quite a few wordpress projects I have a request in which Projects (or other post type) have to be featured in the Portfolio page (or other listing page) instead of the default date sorting lists. ...
0
votes
0answers
20 views

How to enable certain screen options on particular page page

In my screen options i have 5 different options, they are 1) Camp schedule 2) Services 3) Map 4) Address 5) Opinion form I want to enable/check these options on certain particular page not ...
0
votes
0answers
10 views

Avoid wp-load.php within a PHP/CSS file? [duplicate]

There was a similar question already but it uses ajax, and I am not. I want to have dynamic css in my theme, but I can't get the WP functions to work in my php/css file. In my functions.php file, I ...
1
vote
1answer
201 views

How Can I setup WP CLI on Windows development machine running AMPPS?

I want to setup WP CLI. On the home page it says that it needs a UNIX like operating system. I am running windows 7 for development but I could probably setup a virtual Ubuntu box or something. Would ...
0
votes
1answer
52 views

variable created in page.php is null inside of header.php

Ok, so i'm instantiating a class in page.php. Then i'm calling get_header() to include header.php now in header.php i need to access this class object and execute one of its methods but i get this ...
1
vote
1answer
313 views

Having Problem On Getting WP Post Gallery Images URL

I need to get the URL (actual Size) of all images of gallery associated with a post in single.php. The following code from Codex returns all images in very small size 150x150 which is not suitable for ...
0
votes
0answers
42 views

Issue on Getting WP Gallery Items In cpt-single.php As Attachments

Having a "Custom Post Type" called Projects I am trying to get actual URL of images added into Post Gallery and list them in class other than WordPress built in .gallery. This is the code which I ...
0
votes
1answer
79 views

Remove h1 from 2015 theme

I'm a Wordpress newbie! I have two h1 when I list my site categories using a URL of the following format: http://www.example.com/category/YYY I get a HTML page with a header of Category: ...
0
votes
1answer
67 views

How would I get this to work - send to post from thick box

I have the following javascript which talks to about 6 elements. The first three open a thickbox for media upload and what not upon clicking on a specified button, the last three target the input ...
1
vote
2answers
172 views

Converting HTML Template to Wordpress Theme

While I was trying to convert a Static HTML page to Wordpress Theme , I had an issue . the page Doesn't run properly After Checking Google Chrome Console it turns that it loads the CSS file with the ...