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

learn more… | top users | synonyms

0
votes
1answer
38 views

How to get javascript slider to work!

I've only just started to develop my own themes and i'm stuck adding javascript to my slider. I've added the slider into my index.php file as below: <div class="carousel"> <div ...
0
votes
1answer
18 views

Create a variable with string, array or multiple values

I'm running some functions that will allow a user to register their own custom templates to my custom theme from an external directory. They can see these page templates in the wp-admin and they ...
0
votes
0answers
4 views

Custom Theme Admin contact-form config page won't display

I'm stuck. I'm trying to add a contact form section in my theme admin. I have added: the functions function volcano_contact_section() { echo 'Activate and Deactivate Built-in Contact Form'; } ...
-1
votes
0answers
16 views

Is there any CLI tool for plugin development? [on hold]

I have plans to build tool to speed up WordPress development by creating boilerplate code for plugin/themes. Something like set of Generate commands in Symfony2 Console component. Tool have to ...
0
votes
1answer
20 views

Integrating Orbit slider into wordpress through custom post type

I am currently working with FoundationPress, It is a great starter theme loaded with cool features. I would like to create a custom post type called "slides" which will be displayed on the homepage ...
0
votes
0answers
23 views

How to develop custom URL redirection

I'm writing a custom theme and have a custom post type which represents an external entity (e.g. a website). Hence, I have a field 'external_url' in my post type. Part of the custom post type post's ...
1
vote
2answers
575 views

How to display future posts - modified query still yields 404

I have a very strange problem and I am stuck. I want the single page to display posts with the post_status of publish and future. So I added this code to my functions.php in my theme: function ...
0
votes
0answers
25 views

How to hide default sidebar widgets?

I'd like to hide/not display all default widgets(Search, Recent Posts, Recent Comments, Archive, Categories and Meta) which are inserted into custom sidebar when the theme is installed. (Removing them ...
0
votes
2answers
2k views

Conditional tags issue for multiple is_page() conditions in sidebar.php

I've been pulling my hair out today trying to get this right. Basically I have a sidebar, which makes requests to individual files (such as sidebar-home.php, sidebar-residential.php) and different ...
0
votes
2answers
23 views

Display custom post using ID

In my theme, I have a custom post type called sliders. Here the user is allowed to upload images in a meta-box. So, the images are saved as meta data in wp_post_meta table. Now what I want to do is, ...
0
votes
0answers
13 views

Theme Customizer not loading

I have created a new theme and i use it in some of my sites (multisite) but at one site the customizer preview does not load (spinner never stops). Loading the customizer preview of other themes work ...
0
votes
0answers
21 views

Help with folder structure for MVC plugin / theme

I know similar questions have been asked many times, but I couldn't find an answer that would help me progress with my project... Here's my situation: Large part of my project is for logged users ...
3
votes
1answer
36 views

Custom Image section in Customizer

So I have this Custom Section in the Customizer that controls the Feature Products on the Home Page. There all registered and so on but the problem I'm stuck on is when the client uploads one of the ...
-2
votes
2answers
738 views

Is there a WordPress theme or plugin with built-in user management

For building a cashback site, is there a WordPress theme or plugin that offers custom user registration + 'My account' panel?
0
votes
0answers
22 views

Creating a WordPress website using WP-CLI

I really struggling to work this one out, its about WordPress / WP-CLI & BASH. Heres my script: if [ ! -f ".env" ]; then touch .env echo -n "Enter the DBNAME and press [ENTER]: " read ...
0
votes
1answer
13 views

get_posts is duplicating

I have the following code where I want to show one query with the last "post type" post and one query where I want to show the rest. Problem is that the last query is duplicating the first one. How ...
1
vote
1answer
434 views

Creating Page Based on Category

I'm using WordPress 4.0, and the Hemingway theme. I've created a custom page template which currently pull blog posts based on the category I give it. However I'm currently using ...
0
votes
0answers
17 views

Wordpress Theme & BWS Portfolio Plugin Style Messed Up

I am very new to WordPress. I made my own theme using Twitter Bootstrap. Everything works fine when it comes to posts and pages. Now I installed the BWS Portfolio plugin and when I try to go to the ...
0
votes
1answer
30 views

What is the best way to organize template parts?

I am trying to bring some order in to theme files and would like to separate templates parts. I see that underscore ( _s ) has done something similar but they moved only content templates inside , ...
0
votes
2answers
4k views

How to check if woocommerce is activated in theme

I'm creating a theme with woocommerce which has the following: <ul> <li> <?php if ( is_user_logged_in() ) { ?> <a href="<?php echo ...
0
votes
1answer
15 views

Query wp_postmeta into an array based on post_id

I know this might be a simple question but can someone explain to me how to query the WP database and pull in all the "meta_key" and "meta_value" from "post_id" into an array? I have looked at code ...
0
votes
3answers
461 views

How can I see what template parts are being called for rendering the viewable page?

I have a theme where the developer used get_tempalate_part() a lot, and these parts are scattered across theme subdirectories as well as in directories in a plugin that was created to assist with the ...
1
vote
0answers
22 views

Array Chunks and Inserting Varying HTML in WP_Query

I am trying to output the latest 5 posts from my blog. I would like each post thumbnail to populate divs in the following format. <div class="row full"> <div class="large-6 medium-6 ...
0
votes
1answer
971 views

Wrong path for theme assets

I'm working on a WordPress project, starting from Mark Jaquith's WordPress-Skeleton repository, using MAMP. I cloned the repo, updated the WordPress submodule, created a database and updated the ...
0
votes
2answers
1k views

Adding Content Areas to Custom Page Template

I am not sure how to ask this, which is why I have been having trouble finding anything via google searches. I am hoping someone here will understand what I am looking for and be able to direct me to ...
0
votes
2answers
169 views

Sort and paginate custom post taxonomies alphabetically

I need to sort and paginate custom taxonomy post types. i have a page where i have next and previous link. on clicking next and previous link next or previous brand(custom taxonomy) should load. I ...
1
vote
2answers
732 views

WP Customize refresh problem

Hi I am adding options to WP Customize. Mostly everything works, but One of my variable is not refreshed in the preview window. $wp_customize->add_setting('checkbox', array( 'capability' ...
2
votes
2answers
2k views

Get category slug and display it on a query_post

I just read "How to create option page for wordpress theme" in wp.tutsplus.com - I have a problem with getting categories . there is two parts to my question - Part A - Get category slug and ...
-1
votes
1answer
19 views

What to do when child theme is out of date with parent theme

I inherited a site with Genesis as the parent theme and a Genesis child theme. The parent theme has smoothly been upgraded over the years. The child theme, however, was based on an older version of ...
0
votes
0answers
11 views

Malformed RSS feed

I am trying to connect my site's RSS feed to Mailchimp, but my feed doesn't pass basic RSS validation (http://testrtc.com/feed). The reason for that is 3 empty lines at the beginning of the feed, ...
0
votes
1answer
33 views

Undefined index: custom_sidebars

I am implementing custom sidebars on a theme I am developing. Everything works fine when I add new custom sidebars. However, when if I remove these new added custom sidebars I get the error Undefined ...
1
vote
1answer
41 views

wp_enqueue_scripts not working in custom theme

This one may have been answered before but I could not find it anywhere. I have created a custom theme and a plugin for my site. My theme's functions.php file only contain a wp_nav_menu() function ...
0
votes
0answers
30 views

Displaying recent posts on static page with template-part via shortcode

So, I'm taking my first shot at creating my own custom Wordpress theme with Underscores. I have everything straightened out, with the exception of one last thing I want to add. I would like to add a ...
0
votes
3answers
1k views

Custom Post Type Permalink Page Not Found

I've been wasting hours and hours trying to solve a permalink issue with custom post types. It keeps returning page not found (404). When I use the default permalinks, it works, but when I switch to ...
0
votes
1answer
20 views

Pagination adds product to cart Woo-Commerce

In my WordPress Woo-Commerce theme when a product is added to cart from shop page its added into the cart with a url e.g /shop/page/3/?add-to-cart=149 and when I switch to another page using ...
0
votes
1answer
965 views

How to use WP switchEditors.switchto(this) JS function in your own script?

I have a tab switching theme that lets the user choose 3 editing modes when adding new pages (HTML and Visual- these are WP defaults and the new Syntax mode using Code Mirror). I have issues when ...
1
vote
0answers
38 views

Customizer Active Callback not working

From some reason my active_callback => 'is_front_page' is not registering and therefore not showing up inside the customizer on the front-page - I have definitely set my front page to static and ...
0
votes
1answer
1k views

How to make Isotope and Wordpress work together?

I am trying to make my Wordpress theme using Isotope plugin. http://isotope.metafizzy.co/ So far, I have such a result after doing that was suggested: I believe that Isotope Masonry should not ...
0
votes
1answer
14 views

Need help with adding custom menu content

I'm trying to install a Google AdWords snippet on a client website. It calls for replacing the business phonenumber on the page with something like <span class="number">content</span> ...
0
votes
1answer
61 views

trying to figure out how to use more that one image upload in the same section in theme customizer

i am trying to figure out how to use more that one image upload in the same section in theme customizer. the function is new WP_Customize_Image_Control. when you try to get the path of the image you ...
0
votes
0answers
11 views

Submenu not working with iOS

Submenu is not working with iOS. Can not solve the problem.. Can you help me? http://silviabrosig.com/ -> Menu "WORKS" Tx.
62
votes
4answers
70k views

Menu items description? Custom Walker for wp_nav_menu()

Normal Wordpress Menu looks like: Home | Blog | About us | Contact But I've seen many pages with descriptions under these links: Home Page | Our Blogs | About us | ...
0
votes
1answer
33 views

Website pagespeed problem

I have a WordPress website. I've tested it for speed test with google tools, but I see some of errors like this: Leverage browser caching Setting an expiry date or a maximum age in the HTTP ...
1
vote
0answers
23 views

Can I create customizer setting that can handle plugin shortcode?

Can I create a customizer setting which will handle a shortcode from a plugin? Do I violate and rules or guidelines in WordPress theme development? If it's possible what is the best way to sanitize ...
5
votes
2answers
58 views

Allow Shortcode in Theme Customizer

All theme dev who follows the wp guidelines properly, now uses ability of default wp customizer to customize their themes, instead of making a different theme option section the admin panel. But what ...
2
votes
2answers
58 views

How to set a custom post type post as static front page?

I am writing my custom theme from scratch and I have a custom post type 'my_frontpage' and want to declare one of it's posts as front-page. I want to do this via admin, hence simply add my cpt to the ...
1
vote
1answer
21 views

Finding the URL to be used to check if plugin is installed with a theme

I understand the following code checks if a plugin is installed and if not it puts an error in the backend of WP: add_action('admin_notices', 'showAdminMessages'); function showAdminMessages() { ...
-1
votes
0answers
17 views

Use Yoast SEO Title for Recent Posts on X Theme

I know this is super specific but hear me out. On my site I use the X Theme (linked so you can see what I'm referring to). "Recent Posts" is a module of the X Theme which I have setup to show the ...
3
votes
2answers
40 views

Escaping built-in WP function return strings

Should one filter the output of builtin WP functions such as get_permalink() and well-known WP plugins such as ACF (Advanced Custom Fields) such as get_field()? For instance get_permalink() calls ...
0
votes
1answer
462 views

Howto: Use Custom Post Types as Submenu Items in Admin

In a plugin, i've created 3 Custom Post Types, for example: Dogs Cats Goldfish I've also created a "Pets" Top-level menu page using add_menu_pagewherein I'd like to add the 3 CPTs as submenu ...