Tagged Questions

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

learn more… | top users | synonyms

0
votes
0answers
7 views

Custom upload option get an error. (WordPress)

I have successfully created front-end upload option for the users. By following this tutorial. But, When I upload the images it's getting an error. I had enough to goggling now. Below is my codes, ...
0
votes
1answer
28 views

Get author meta data with no published posts in author.php?

Unfortunately the following codes only echo the spcefic default and custom author datas if the author has at least one published post :( <?php the_author_meta('description'); ?> <?php ...
0
votes
1answer
16 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 ...
0
votes
1answer
13 views

Theme with Isoptope after activation in new install not working well [on hold]

Hi I'm developing a theme with Isotope (masonry mode) and everything works well in the master/development location of WP. But if I take this theme and I activate it in a new installation of WP (same ...
0
votes
1answer
18 views

How to migrate the menu from the site on my own theme in Wordpress?

I'm a novice at WordPress topic and now I'm trying to figure out how to migrate the part of the design (I've decided to begin with navigation bar menu on the top) on this site to my own site based on ...
1
vote
3answers
65 views

Rewrite Question Mark in Post Template with URL Parameter for clean URLs

I use following code (Source) to change the single post template via url parameter: function sjc_add_query_vars($vars) { return array('template') + $vars; } add_filter('query_vars', ...
1
vote
1answer
45 views

The problem with Wordpress Importer

I've tried many times to upload theme-unit-test-data.xml from http://codex.wordpress.org/Theme_Unit_Test But when I'm trying to upload this file in WordPress Importer it gives me an error saying: ...
0
votes
0answers
22 views

Disqus comments not displaying properly

I recently installed the Disqus plugin on a theme I have been building but am not seeing the Disqus comment section as I should be. I can see that it is sort of working, for example using Dev Tools I ...
0
votes
2answers
20 views

What might cause a featured image not to display?

I'm writing a child theme for the editr theme and the featured image is not displaying for a new post. The featured images do display for demo content. For the new post, the following markup is ...
0
votes
1answer
30 views

Using wp_add_inline_style without a stylesheet

I need to add custom inline styles to the header of a custom theme I'm creating. I've come accross the wp_add_inline_style() function, which works but doesn't really suit me as it depends of a ...
0
votes
1answer
24 views

Why is including all your files within a theme folder important?

Alright, I know it is important. It keeps things organized and allows you to port your theme over pretty quickly without any problems. However, I have another developer who does this frequently, ...
1
vote
1answer
33 views

How to reorganize the items returned by wp_list_comments()?

I'm new to WordPress theme development and learning by building a new theme of my own. I want to reorganize the items returned by wp_list_comments(). I created comments.php in my theme folder and it ...
0
votes
0answers
12 views

Allow users to label or classify or group posts accoring to their own criteria

Is it possible to allow individual users to group posts according to their own personal classifications. Say one user wanted to class groups by read and unread ... or 'to read' or 'shared' etc. ...
0
votes
0answers
11 views

User autonomous tags for custom post types

Is it possible to create a taxonomy ( or other ) system such that each user on a WordPress system could have an autonomous tag setup which they could use to order custom posts. For instance: There ...
0
votes
0answers
24 views

How to Use WordPress Color Picker API in Custom Post Type Metabox

I have a Custom Post Type called "Banner" which has a custom Meta box with two advanced fields "Title" (text Field) and "Color" (color Picker). Can you please let me know how to use the WP Color ...
0
votes
1answer
28 views

Specify Image dimensions

i ran a performance report for my website (gt metrics) and i realize the image dimensions are not set and i missed to specify height and width attributes. Basically the theme had already some images ...
0
votes
0answers
22 views

Custom text in header.php as page of edit field

I been creating a template from scratch in wordpress and now I have a template header with a image in it a text/ subheader text. And below that all some info text. What I want is that I can change ...
0
votes
0answers
22 views

How to add posts of static html page into my wordpress theme dynamically [closed]

Iam going to create a blog which consists of posts and it is a HTML page now I want to convert it into WP Theme I done it now I have some posts I need to get that posts dynamically please help with ...
1
vote
1answer
13 views

Should I use language_attributes() or bloginfo(“language”) in html tag

I heard there is two ways to put the language attribute into the html tag. The two ways are: <html <?php language_attributes();?>> and <html lang="<?php bloginfo("language"); ...
0
votes
0answers
23 views

Seeing multiple CSS versions

I've tried Googling this, but I've no idea how to fix this. I am not versioning my CSS and yet I constantly see this versioned CSS and it makes all the styles show up twice and it's really frustrating ...
0
votes
1answer
13 views

background_image support multiple image size?

Does background_image support showing multiple image sizes like feature image? I can see multiple files were created when I uploaded a file. How do I use those images or does background_image not ...
0
votes
0answers
11 views

After theme change the menus have to be manually linked to the corresponding theme location

When publishing a new version of a theme after I upload and select the new version of the theme the menus aren't visible on the site anymore. Everytime I have to link them to the corresponding theme ...
0
votes
0answers
12 views

Mix and matching themes?

Okay, so I have a bit of an issue. I have customized a theme for someone, but they have decided they would like to use a different theme (I suppose for what the theme itself has to offer), but they ...
1
vote
0answers
7 views

Override customizer values on a per-menu base

suppose I have a few options in the theme customizer, and I might want to show for example 5 different categories listing menus in the site. In the customizer I can set options for all of those, ...
0
votes
1answer
13 views

Get info (url) from already enqueued styles

I am building a theme and using Easy google fonts WordPress Plugin. I created several typography controls within Theme Customizer for Post content,Post header, Author page content, Single Post ...
0
votes
1answer
23 views

how to make a new page affected by a theme's index.php layout?

I need to create some new pages for my website e.g. Gallery, Audio collection, etc. I want them to have a layout similar to my theme's index.php. How can I do this so that the layout updates for the ...
0
votes
0answers
15 views

How do I add a New-Post widget to my primary sidebar?

I am trying to modify the twentyfourteen theme by simplifying and deleting most of its widgets. I have done this successfully for the toolbar, but one of the widgets I would like to keep is the one ...
0
votes
2answers
38 views

Can I Set Up Session in WordPress Custom Page

I am trying to set up a login system and Contact form for Fornt End Users of my Custom WP Theme. I need to create some Ajax Post method and Send the input values to server like Captcha and User Inputs ...
-1
votes
0answers
22 views

Use WP Super Cache on mobile theme with Nginx

So, this seems to be a rare case. There are people like me who want to use a separate theme for mobile & tablets instead of going the responsive route due to advertisements. I'm currently using ...
0
votes
0answers
17 views

How to display different content on page based on parameters sent for index.php

I have created a novice WordPress theme. On the main page that is structured based on index.php (not index.php of the site root, but rather index.php within my theme folder). The problem I have is as ...
0
votes
2answers
20 views

Custom meta box in custom post type not working

As a wordpress newbie I am having problems in adding custom meta box in my "slider" custom post type which I used in some old wp theme. I'm getting a warning: Warning: call_user_func() expects ...
0
votes
1answer
31 views

How to copy data from user profile page (profile.php) to theme customizer

i am trying to figure out how to copy data from user profile page (profile.php) to theme customizer. i want to copy some data from some fields, when theme is activated. and stored the data in theme ...
0
votes
1answer
20 views

Query custom post type and showing its content

I am a newbie in developing wp themes and having troubles showing my cpt. I added new cpt in my functions.php file: // Creates Testimonials Custom Post Type function testimonials_init() { $args ...
0
votes
1answer
14 views

Category page with posts from 2 different childcategories

I have a category and will query posts from 2 different child categories see below. This is my structure 1 category - 1.1 category <- her we are (on this category i will show the posts from ...
0
votes
1answer
25 views

how to set more than one menus to the same theme location

In my theme i need to display different left side menus on different pages. so i register a secondary menu too by this register_nav_menus( array( 'primary' => __( 'Top Menu' ), ...
0
votes
1answer
56 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 ...
-1
votes
0answers
19 views

display installed themes in frontpage

Is their any way to display installed (or selected) themes with associated screenshot.png on the front... with a live preview link? like https://wordpress.org/themes/
0
votes
1answer
39 views

Displaying details of a post in a sidebar

I am developing a wordpress theme but m still new into and was learning. Basically, its a theme for resource website which provides web templates. In my theme i've created a details section in sidebar ...
-1
votes
1answer
32 views

customize functionality of share buttons under each blog post [closed]

i am working on a magazine theme design and i wanted to know how the thumbs-up button functionality under each blog post found at http://www.movenourishbelieve.com/ is implemented. i am using a ...
0
votes
0answers
34 views

Link (by categories) to the first and last posts in custom post type

Link (by categories) to the first and last posts in custom post type For a new theme, I created a “story” custom post type. The main content has a different style than the blogging part, with ...
0
votes
0answers
10 views

How to add a blog feed to a custom main page?

I would like to add a blog feed to a 4-section main page; header, content, blog feed and footer. I'm using WP 4.0 and a child theme for the TwentyFourteen theme. I'm unsure wether I should place the ...
1
vote
0answers
37 views

WordPress Filtering Custom Post Type by Metadata and Search Heirachy

I have a custom Post Type called cptMovie which has two Custom Field (Metadata) "Language" and "Box office" assigned to it. I also have a Custom Taxonomy called movieTax with 4 tax Terms "Action", ...
0
votes
1answer
21 views

get_term_link is Ending to single.php

I have a template like this: page-movie.php taxonomy-movie.php taxonomy.php and I am using the get_term_link() at page-movie.php to list and link from the indexed page into List of all Custom ...
0
votes
1answer
42 views

LOST in WP Template Hireachy

I am trying to create a Custom Theme which is supposed to list and dialysis Custom Post Types First Base on Taxonomy and In next page List and Display Them based on Taxonomy Term which linked from the ...
0
votes
1answer
26 views

Issue On Displaying Pages with Post Name Permalink

I have a simple Theme like below Right now when I navigate to localhost and site root directory I am able to see content from header.php , footer.php and page.php. then, I simply generated some ...
0
votes
0answers
22 views

If it is a top level category show children otherwise show sibling categories

I found a great piece of code for my category.php file to list categories for a specific taxonomy (not tested). BUT - how can I change the code (or achieve it) to show the default Wordpress categories ...
0
votes
1answer
34 views

Issue on Getting Custom post type Thumbnail's URL

I need to get the URL for Custom post type Thumbnail and assign it to the_post_thumbnail('', array('class' => 'group1 img-responsive', 'href' ...
0
votes
0answers
70 views

Issue on Counting CPT's Under Taxonomy Term

I am using this code to count number of Custom Post Type $tax_terms = get_terms($tax, $args); foreach ($tax_terms as $tax_term) { echo '<li>' . '<a href="' . ...
0
votes
0answers
41 views

Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update

am using this code to create a Metabox for CPT. Now I am able to view the updateded / saved Text input on post but the Checkbox and selected options return null after save or update. Can you please ...
0
votes
1answer
51 views

How To Pick Custom Size Of Uploaded Image In Theme Via the_post_thumbnail();?

I am designing a magazine style theme and I want different image sizes as to show on index.php page. Now for this, I am using <?php the_post_thumbnail( array(100, 100) );?> but it is picking ...