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

learn more… | top users | synonyms

1
vote
1answer
8 views

What function to hook for changes made in status and visibility of a post

I have a function to run every time a post is published or updated in anyway. Right now I am doing function myFunction(){ //Do Something } add_filter('publish_post','myFunction'); ...
-1
votes
2answers
37 views

Shortcodes do not work in own template

I have a big problem rendering shortcodes in my template I designed for my Tennis Club which works fine. However, now I wanted to integrate the standard WordPress Gallery, which is implemented by a ...
0
votes
0answers
10 views

Activating theme in local MAMP installation results in HTTP ERROR 500

I have a local WordPress installation in a MAMP server that was working fine and after a period of time without using it I come back to it and I get a HTTP ERROR 500. Couldn't figure out how to fix it ...
1
vote
0answers
17 views

Utilize customizer nav controls to attach posts to pages

While working on a custom control for the customizer to attach posts to pages I found out that there is already a built-in feature with very similar functions: the nav_menu and nav_menu_item controls. ...
0
votes
0answers
11 views

Fallback dosen't work when not using 'menu' attribute

I want my fallback function to be called when the menu doesn't contains any items. And if I specify the menu name, it works. But not when as I below comment away that attribute. Now nothing happens. ...
0
votes
1answer
20 views

How to add & show new fields in posts in Wordpress

Im have created post types called news in wp-admin which will be able to add New News and display on News page. Here are some screenshot first look at them, that is how i want to display stuff. ...
-1
votes
1answer
15 views

How can I get rid of the distance when I'm using list-style-type: none? [on hold]

I am using the following code (output html) to get my comments displayed. But there is a space because of the list-style-type: none; I used. How can I get rid of this? This is the fiddle
0
votes
0answers
12 views

Why are the author and the date not displayed next to the avatar in comment section?

I got the following code: jsfiddle.net/xg0waxL7 In this Fiddle it looks good but the problem is that WordPress displays just the bottom comment like I want it: prnt.sc/b7yaq6
0
votes
0answers
29 views

How to upload theme: wordpress org Theme upload error

im checked my theme through theme check plugin. result : im failed upload wordpress org theme upload. having a problem uploading my theme to wordpress as the initial theme check fails with the ...
0
votes
0answers
15 views

Not Able to Get Custom Post Type in Single and Single-custom-post-type

I have a custom post type called projectsCPT and I am able to display them on page-projectsCPT.php <?php /* Template Name: Projects */ get_header(); ?> <div class="container" ...
0
votes
1answer
15 views

Splitting Repeater Fields in Advanced Custom Fields [on hold]

So, I need to be able to split four repeater fields into separate columns for a layout I'm working on and I can't find one that has been able to work properly, or suit my needs. Essentially, I need to ...
2
votes
2answers
31 views

Metabox Not Showing on Custom Post Type But On Pages and Post

I have a Custom Post Type like function cpt_Projects() { $labels = array( 'name' => 'Projects', 'singular_name' => 'Project', 'menu_name' ...
0
votes
1answer
19 views

get_option in header.php not returning value from customizer

I've set up a new section in the customizer called Social Links, under which I've set up an option and text field control called Facebook. Here's the code in my functions.php: // SOCIAL LINKS ...
4
votes
2answers
38 views

Finding Page Template and Displaying Content

So, I'm building a theme for a client with one page layout functionality. Currently, I'm allowing the user to create a parent page, and the modules within that page are separate pages that will be set ...
-1
votes
0answers
14 views

Having Issue On Metabox Gallery and Attachment URL [on hold]

Using WordPress 4.5.2 , I am trying to add Gallery Metabox to post using this solution but in js part I am getting this error Uncaught TypeError: Cannot read property 'url' of undefined on ...
0
votes
0answers
49 views

Load a page into a div with Ajax

I'm really a noob when it comes to Wordpress, right now I'm working on a theme that basically is all static, if you want to edit something you'll have to edit the .php file than rather doing it on the ...
0
votes
1answer
21 views

underscores use of the article element on the page template

I understand and what I have seen the most is the use of the article element for blog/news posts. This makes total sense to me. article element to be used for content that can stand alone or ...
1
vote
1answer
23 views

How to To Filter wp_enqueue_script() Scripts on Some Pages

I am using following code to add some scripts in WP pages like function add_js() { wp_deregister_script('jquery'); wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : ...
0
votes
0answers
14 views

How to store a number (coming from cookie) into query vars for later usage in other filters?

I have a small HTML5 game playable (as "canvas") at different social networks, which sets an HTTP cookie. When a player comes to my Wordpress site (acting as help and support website for the game), I ...
1
vote
1answer
20 views

Wordpress is adding margins and padding to my custom menu?

I've installed wordpress on my computer so I can learn how to make custom themes and test them locally. Currently I'm playing around with some pre-made code from a tutorial so I can get more familiar ...
0
votes
1answer
37 views

Is it possible to set a variable for get_post_meta?

I have a lot of places within my templates where I get custom post meta set up with CMB2 and I was wondering if it's possible to set get_post_meta( get_the_ID() ) to a variable like $service_meta ...
0
votes
1answer
32 views

How to get list of custom taxonomies based on custom post type

I have 2 custom post types and custom taxonomy assigned to both post types. On the page where I list posts (custom post type archive page) I would like to dispay a list of all custom taxonomy terms ...
0
votes
0answers
12 views

Wordpress gallery images overlapping on horizontal scroll

I'm building a horizontally scrolling portfolio which uses the built in wordpress gallery within posts. For some reason the images un the gallery are overlapping and not all of the images are ...
0
votes
2answers
28 views

Renaming a theme so it aids SEO and the theme used is hidden

We are using the Divi theme for our Wordpress site, we have also activated a Child Theme that we have named our SEO keyword. However, when you look in the "View Source" and Theme Sniffer Chrome ...
3
votes
1answer
225 views

Is the theme customizer slowing down my site?

I have built an awesome theme, which is very flexible, because it has 500 settings in the theme customizer. I generate the live css like it says in the codex: function mytheme_customize_css() { ...
1
vote
0answers
15 views

WooCommerce Template Override or Hooks for update safe customization?

I'm about to create a custom online store using WooCommerce for a client and I wanted to know some people's opinion on whether overriding the WooCommerce template structure or adding html code through ...
-2
votes
1answer
25 views

Getting error on function.php

<?php define('TEMPPATH',get_bloginfo('stylesheet_directory')); define('IMAGES',TEMPPATH."/images"); add_theme_support('nav_menus'); if(function_exists('register_nav_menus')) { ...
-4
votes
1answer
33 views

Isotope overlapping .items because of featured images - HELP! [on hold]

I need urgent help as I'm having a nightmare with Isotope. All was working well through my desktop server but once live, Isotope items are overlapping (see http://www.skinsave.co.uk/30-2/) How can I ...
0
votes
0answers
27 views

How can I add pagination to my loop? [duplicate]

That's my current loop: <main id="main"> <?php // the query $args = array('posts_per_page' => 10 ); $the_query = new WP_Query( $args ); ?> ...
2
votes
3answers
38 views

Wordpress loop specific thumbnail size

That's my loop: <main id="main"> <?php // the query $args = array('posts_per_page' => 10 ); $the_query = new WP_Query( $args ); ?> <?php if ( ...
4
votes
4answers
266 views

What WP folder can I use to write files to?

I am working on a theme that uses dynamic in head CSS and gives admin an option to also place the same in a file. Problem is that I am not sure what WP folder is always writable. I originally added ...
1
vote
1answer
28 views

Single Theme folder for Multiple Wordpress

I ran into a scenario where I want to achieve this. WordPress Site 1 WordPress Site 2 WordPress Site 3 WordPress Site 4 I want theses four sites to have a single theme folder and it get themes and ...
1
vote
1answer
55 views

Fatal error: Maximum execution time of 60 seconds exceeded in H:\wamp\www\custom\wp-includes\class-wp-http-curl.php

I imported the Theme Unit Test xml file with the wordpress importer. But all of the data is imported as pages. I am following an online tutorial to build a wordpress theme development and I believe ...
0
votes
1answer
35 views

Change single.php template based on parent category

I have the following code working but with split() being depreciated and not available in php 7, I need some help. The idea here is this code is inserted in my single.php (in child theme). When a ...
1
vote
1answer
21 views

Custom category code not showing all posts

I have a PHP template I am applying to several pages on my site so that they show a list of all posts in a category with the same name as the page. However, this is not working correctly in that posts ...
-5
votes
2answers
38 views

Is there any open source WordPress Themes?

I am a WordPress Plugin Developer. But I need to create two custom WordPress themes for a client (Client will sell those themes). It is hard me to start WordPress theme development from scratch. So ...
-3
votes
0answers
13 views

How to make my website (tesseract theme) on a deffrent language [duplicate]

How to make my website (tesseract theme) on a different language.
0
votes
0answers
25 views

Issues with title-tag and document_title_parts

Wordpress version 4.5.1 I'm trying to dynamically update page titles on a particular template. After lots of digging and learning about the wp_title() changes, I'm attempting to use ...
0
votes
0answers
27 views

Noticed strange thing in new Wordpress versions

In the latest WordPress versions, for ex: 4.5.2, the function of displaying post comment reply link (comment_reply_link()) is not working. When I var_dump() it returns NULL. I'm using custom function ...
1
vote
2answers
42 views

Example of a theme organization without all the default wp files in root

I know I can get rid of some of the default WP theme files required using get_template_part() for instance. But some files still need to be present - for instance, how would I move page.php to a ...
-1
votes
0answers
16 views

create admin page with custom fields

I have a Custom Post Type "Special-Sales" to show a couple of products. Each products shows up to 20 product features. Those features are taken out of all available product features. This are stored ...
0
votes
1answer
42 views

Cherry framework - Overriding function in template-general.php

In wordpress Cherry framework, I am trying to edit template-general.php file functions, but it's different not able to do so. I tried to follow this link, but does not help. Link for Cherry framework ...
0
votes
1answer
46 views

How to add aria role and schema markup to custom walker container

Edit: after doing some research I've found that in the wp_nav_menu function uses the following code to display the containers value. if ( $args->container ) { /** * Filter the list of ...
0
votes
1answer
33 views

Building a Treatments Page, What Do I Use?

I am currently building a site for a local day spa and I have hit a dead end in regards to the treatments page. I just don't know what I'm doing, I have been stuck on this problem for a couple of ...
1
vote
0answers
28 views

Following Web Performance Optimization techniques to output static and dynamic css

I have always felt the way styles are handled in WordPress is not optimal regarding the web performance optimization (WPO) techniques that are related to css. From a theme developer point of view, ...
0
votes
1answer
16 views

Make a plugin page out of influence of the theme's style

I have to make several change to my style to be with what i want, when i export a project to a wordpress plugins : Based on this : When including it into a plugin, i finally got this : This ...
0
votes
0answers
28 views

Angular js template to wordpress theme conversion

Hi all currently i am working for angular template conversion to a wordpress custom theme development, I can able to fetch the post data, I am bit get stag with getting our menu's as dynamic. Here is ...
-2
votes
1answer
22 views

Best Way to Inventory the Media Library of a 200+ Multisite Installation?

I have a multisite installation of WordPress with 200+ sites. I recently was tasked to do an inventory of each site's media library and was wondering if this could be accomplished programmatically ...
0
votes
2answers
64 views

Ideal inline dynamic CSS injection

There is a code in here that dynamically load custom script. <?php function my_styles_method() { wp_enqueue_style( 'custom-style', get_template_directory_uri() . ...
1
vote
1answer
30 views

Is it possible to place custom post type files inside a folder in theme directory?

I have created a custom post type called customtype. From my understanding the template file for it would be single-customtype.php which is placed inside wp-content/themes/mytheme. Can I place the ...