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

learn more… | top users | synonyms

0
votes
1answer
354 views

How do I check if a menu exists?

I'm currently retrieving a nav menu based on the parent page's title, and if the page doesn't have a parent then it's own title. global $post; $page_title; if ($post->post_parent) { ...
1
vote
5answers
1k views

WP_Query returns no results

I'm using wp_query to create a custom query that retrieves search results but it is returning 0 results. Here is the code: $query = 's=the&posts_per_page=5&paged=1'; $custom_query = new ...
-4
votes
0answers
12 views

doesnot install theme in wordpress [on hold]

word press install in my domain in filezila. in that not install a theme showing error Unable to create directory wp-content/uploads. Is its parent directory writable by the server?
-1
votes
0answers
5 views

Finding a correct theme for existing non wordpress site [on hold]

I am new to wordpress development..i want to create a website in wordpress which will have similar look and feel of this website...can someone help and tell me how can i find a theme in a easiest way? ...
0
votes
0answers
9 views

WP_list_table unhideable columns

So I have managed to setup a custom WP_list_table in my theme as per the tutorial here. I really love the fact that you can make the columns hide-able, and I have manage to implement that. What I ...
1
vote
1answer
973 views

Add link option to featured image?

I've enabled my theme with featured image support. The one thing missing is the ability to add a user-defined hyperlink to the image. I'm pretty sure I can add a custom field, which I can then use to ...
0
votes
0answers
17 views

Where do you find theme options in the UI? [on hold]

In my footer.php I have {!$options->theme->footer->text} and I can't find anywhere to edit any theme footer options. I've tried searching around Google but can't find anything under ...
0
votes
0answers
11 views

Plugin/Theme template to make developing easier [on hold]

I think everyone use skeleton to start developing a plugin/theme. It reduces the development time drastically. I will love to see some skeleton from experienced wordpress theme/plugin developer. I ...
0
votes
0answers
18 views

How to build a theme with custom front page and user specific pages [closed]

This is my first time building a Wordpress theme and I'm a little confused on how to create a theme with a heavily customized front page, with no header or footer and a custom layout, an embedded ...
1
vote
1answer
76 views

Some doubts about how the main query and the custom query works in this custom theme?

I am pretty new in WordPress theme development and I'm not so into PHP (I came from Java and C#) and have the following situation in this custom theme As you can see in the homepage I first show a ...
0
votes
0answers
13 views

Inserting Google Tag Manager (Header.php in Child Theme Not Working)

Web newbie here! I inserted the Google Tag Manager script into my child theme's header.php (which I copied from my main theme's folder) under the tag. However, it doesn't seem to override my main ...
1
vote
1answer
21 views

Theme Splash Image within the “Appearance -> Themes” control panel [duplicate]

I have created a theme, and its all working fine. Within the WordPress control panel under "Appearance -> Themes", you can see the available themes (Twenty Fourteen, Twenty Thirteen etc etc) and ...
0
votes
1answer
12 views

Where can i design and modify a new mail template for sending emails to users when commenting?

the mail sent by Wordpress is ok but its template is very simple and has no style or even a header or footer! its message has no information about my blog or logo. where can i edit its message body ...
2
votes
1answer
49 views

Override Constants in Child theme

I have a parent theme that declare these constant in function.php: define("THEME_DIR", get_template_directory()); define("THEME_DIR_URI", get_template_directory_uri()); define("THEME_NAME", ...
2
votes
3answers
25 views

Filtering the Comment Form Allowed Tags

How can I remove some of the allowed HTML tags in comments/posts? For whatever reason, the following code, placed in my theme's functions.php, didn't work: add_action('init', 'my_html_tags_code', ...
-1
votes
0answers
17 views

How to Create News and Magazine theme? [on hold]

Hello Every One I Know How to Create and Develop blog themes for wordpress but I want learn How to create Fremwork to show posts like News And Magazine themes Not Blog themes, I mean Create theme ...
0
votes
1answer
1k views

How do I implement jPanelMenu?

I have serious problems trying to implement jPanelMenu to the theme I'm building. The theme is nearly finished, I'm just trying to figure out this menu and I can finally start using it. Anyways, if ...
0
votes
1answer
34 views

wp_update_comment not working

I've created a custom comment editor and for some reason, wp_update_comment is not working. It returns 1, which means it should have been successful but it's not actually updating anything. Listed ...
0
votes
2answers
1k 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
0answers
11 views

Adding Metabox Value Using the content filter

I am able to show repeater metabox on index and single post .Now I want to show this using add_filter( 'the_content', 'theme_slug_filter_the_content' ); My code to get meta value <?php $data = ...
0
votes
0answers
13 views

Moving Plugin Code into a Theme - Class Declaration - what hook should I use to create new instance?

I'm planning on moving a Plugin Inside a Theme I'm creating. The Plugin currently utilizes a Class to declare and set up the Custom Post Type and all of the other functionality of the plugin itself. ...
1
vote
1answer
26 views

Prevent WordPress updates from overriding custom language translations?

my site's language is persian and persian is a right-to-left language. Wordpress has a default installation package for this lang but for some cases like very bad translation for dashboard or default ...
0
votes
1answer
20 views

WP Load post with ajax and apply isotope

I ma using Ajax Load More to get my posts and show in a frontend, then I have applied isotope to the items. When I first show some items and applied isotope, it's working perfectly. But When second ...
14
votes
2answers
6k views

When to use is_home() vs is_front_page()?

I've found that is_front_page appears to return true when I'm viewing the home page and have a single sticky post assigned there. It also returns true when I've assigned a page as the static front ...
0
votes
1answer
13 views

Why when I create a new post I found 2 record related to this post into the posts database table?

I am very new in WordPress development and I have a doubt about the WP database table named posts I have observe that when I create a new post (into the WP administration panel) are created 2 record ...
0
votes
2answers
24 views

Why in this archive page that call query_posts() function show only the last 10 posts?

I am pretty new in WordPress theme development and I am finding 2 problem with this posts archive page: http://lnx.asper-eritrea.com/archivio/ The previous page have to show ALL the blog posts into ...
0
votes
1answer
36 views

Why WordPress architecture is not pure object oriented and it don't use MVC pattern? [closed]

I am pretty new in WordPress and PHP development (I came from Java and C#) and I am a bit astonished about how WP is structured. Coming from Java and C# I'm used to work on totally object oriented ...
0
votes
0answers
7 views

Where is stored the Publish date value for a post?

I have to do a massive change in the database and I need to know in what field of what table is stored the publish date value of a post. Using phpMyAdmin I see that each record into the wp_posts ...
1
vote
2answers
32 views

Where can I access my custom page template?

I understand that to create a new page template, all I have to do is create my custom template (in this case, page-custom.php) file, and save it in wp-content/themes/mytheme/. However, where can I ...
0
votes
1answer
27 views

Take control of WordPress before functions.php

I'm developing theme and I want to make page cache of static pages in my WordPress theme (and basically I know how to implement it) The problem is that when making theme - the first time when I "get ...
0
votes
4answers
26 views

How to obtain the current website URL in my theme?

I am working on a custom theme and I have the following doubt about how to correctly insert the link to some section of my website into the theme. If you open this link you can understand what I need ...
0
votes
1answer
361 views

Get all first images of posts in same category

I am trying to build a list of thumbnail images linked to their associated single content pages within the same category. So, when I am in the category of 'x' the list returns all image attachments ...
0
votes
2answers
19 views

Syntax error when I try to insert my loop into an unordered list? [closed]

I am very new in PHP and WordPress development and I have the following problem trying to insert some HTML code into the posts loop. I tried something like it: <?php if (have_posts()) : ...
0
votes
0answers
11 views

Adding Page/Post Attachment Capability to the Media Edit Screen

Is there a way to add the page attachment capability to the edit media screen? So if I add/edit a media item, I can also attach/re-attach it to a page.
0
votes
0answers
18 views

Combining the Edit Media Screen with the Links Manager?

Is there a way to somehow integrate the link manager into the media edit screen? So if a user uploads or replaces a media item, they can also add the media's attachment link to a link category from ...
-2
votes
0answers
19 views

Theme issue for client [closed]

I have been commissioned to work on a theme for a make up artist that allows them to upload images onto 7 different galleries within the site. Is there a theme that makes this possible? Please can ...
0
votes
1answer
36 views

line-height of gist code doesn't take effect [closed]

I find Better styles for embedding GitHub Gists and add the code in my style.css. The font-size can be changed and work but the line-height doesn't take any effect though I make it 0px. Just show my ...
0
votes
1answer
16 views

How to create a posts archive page showing only the date and the post title

I have the following question about how to create an archive page on my website. As you can see opening this link: http://lnx.asper-eritrea.com/ Under the header slideshow I have 3 boxes, the second ...
0
votes
2answers
16 views

Differences when using the the_time and the_date functions

I have some doubts about how work the WordPress the_date() functions definied into general-template.php In a page I show the posts archive using this code snippet into a loop: <article ...
0
votes
1answer
13 views

How to show the posts list into a static page? Problems to use the loop into a static page

I have the following problem: I have to create a posts archive into a static page. So I have created this page template containing the loop to interate on my posts: <?php /** * Template Name: ...
0
votes
1answer
9 views

Can I show also the post date using the wp_get_archives() function?

I am pretty new in WordPress theme development and I have some doubt about the wp_get_archives() function: http://codex.wordpress.org/Function_Reference/wp_get_archives In my website I have create ...
0
votes
0answers
12 views

WP load posts by ajax, count and update every time

I have used Ajax load more plugin to load my posts. I also need to display the total post count and update it after every time post load and append to the list. Can anyone give me any idea about ...
0
votes
1answer
310 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 ...
0
votes
1answer
695 views

A two column loop with one lead post

I got a loop from internet (I forgot the site) for two column post view. It has a nice CSS for it too. But skipping that for the question now. <?php $counter = 1; ?> <?php ...
0
votes
1answer
22 views

save prevision data in the database on theme activation

I developed a theme for my client. Theme have predefined posts, pages and sliders etc. when some one activate the theme, theme does the following steps on theme activation action hook. 1:- Empty the ...
0
votes
0answers
10 views

Iris color picker

i try to implement Iris color picker in my wordpress theme and it works fine, but when i include the Iris color picker's files i can't call a custom function via a tag. this is the Iris color picker ...
0
votes
1answer
18 views

Detect error 404 page to find out the issue

I have a wordpress website, which when I visit www.mywordpress.com/test/setup it throws an error 404 page. Which class in wordpress handles the request dispatching?
2
votes
2answers
1k 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 ...
0
votes
0answers
16 views

Internal Server Error 500 with Custom PHP file

I am trying to create a gallery with multiple sortable albums since there are so many pictures. I am doing this by enabling categories on media items, looking up a specific category, gettings all the ...
4
votes
1answer
125 views

Bestway To Define Theme and Plugin path and url

I am in a mess.I know this is a silly question.You see the theme path is not so good.So is there any other way?How can I use get_template_directory() here? // theme folder path if ( ! ...