Tagged Questions

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

learn more… | top users | synonyms

0
votes
1answer
25 views

Twenty Twelve Author not displaying

I have a WordPress blog. On which I want to display author name with each post. I have tried various plugins but these don't work for me. This is the address of blog: http://altuslift.com/blog/ I ...
-1
votes
2answers
68 views

Adding header logo instead of text

I want to add Header logo instead of the text "physics for All " in the following site. I think , i have to add my logo to my site then , i will have to insert the image link to the header.php ...
0
votes
1answer
178 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
49 views

I need to develop a one-page design

I know how to add the scrolling effect, I just needed help that how should I code the onePage.php template by which I can handle different themes for the divs i.e. ABOUT, EVENTS ... each div has a ...
0
votes
0answers
35 views

Hook pages by id on static front-page

I would like to build a one page website upon the Wordpress CMS. I'm looking for a way too hook my pages on a static frontpage by id, since I have several page types. I've tried: $id=6; $post = ...
0
votes
2answers
107 views

How to use my style.css file outside of wordpress subdomain?

I am building a wordpress theme from scratch on a subdomain and I want to use the same CSS files across my entire site. My problem is linking my wordpress PHP files (which are on the subdomain) to my ...
0
votes
1answer
66 views

How to upload/update theme from local - bitbucket - shared hosting?

I am having tough time to figure out the best most appropriate way to maintain and update my custom theme for wordpress. I have setup local server (wamp) with wordrpess where I mainly develop my ...
0
votes
0answers
67 views

Working widget does not show up in appearance->widgets

I try to add a custom widget for use outside of a normal sidebar. For that I have created class myfirst which extends WP_Widget and with appropriate function overrides. namespace widget; class ...
1
vote
2answers
136 views

Single Page Wordpress Theme - Using page templates

Well I am lost, its late and I have been searching google all night. Heres the problem I am running into. I am trying to create a singe page website using wordpress "pages". How I have initially setup ...
0
votes
3answers
22 views

Add admin script to several post types

I have found several tutorials how to add script to certain post type.like add_action( 'admin_print_scripts-post-new.php', 'banner_admin_script', 11 ); add_action( 'admin_print_scripts-post.php', ...
0
votes
0answers
32 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
26 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 ...
1
vote
1answer
21 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
3answers
37 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', ...
0
votes
1answer
27 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
15 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. ...
2
votes
1answer
55 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
46 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
1answer
17 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
0answers
11 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 ...
0
votes
2answers
69 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
156 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 ...
1
vote
2answers
52 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
33 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
43 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
2answers
36 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
26 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
2answers
59 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
0answers
39 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
78 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
33 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
1answer
200 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 ...
0
votes
0answers
52 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 ...
2
votes
1answer
86 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", ...
0
votes
0answers
38 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
28 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
1answer
27 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?
0
votes
0answers
56 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 ...
0
votes
0answers
64 views

Add all typography options with options tree

I'm new to WordPress theme development, and I had to create a theme with options tree. I have successfully add some options with options tree plugin in my Wordpress theme. But I am really stand when ...
5
votes
1answer
217 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 ( ! ...
0
votes
0answers
22 views

Show sidebar from custom meta value

I want to show sidebar from meta value.Basically I am using wp-page-widget.Now I want to show the active widget.Since I am working on one page template so general procedure will not work. Upon ...
0
votes
1answer
23 views

Overide enqueue in non plugable function via child theme

I am trying to override a non-plugable function using the information on this page but it seems to have no effect. Can anyone see what's wrong. My code is remove_action('wp_print_styles', ...
0
votes
0answers
23 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 ...
0
votes
1answer
28 views

Single Featured Image Repeating

I am attempting to create a listing of Blog Posts by Date(Month) and show the featured image for each. <div id="datePostTime"><h2>Posts for <?php echo get_the_date('F, ...
0
votes
0answers
61 views

wp_footer hook only working on homepage not in other pages

I try to output a javascript code in wp_footer hook but it is not printed in all pages it is working in home page only. I have checked for the presence of wp_footer(); function in footer.php it is ...
-2
votes
2answers
23 views

Recent posts with comment count in “Sidebar” template [closed]

I tried this code, but it totally broke my site. I suppose it's because I'm doing something wrong in the WP_Query's sacred posts context in the sidebar template. Could some WP guru please correct this ...
0
votes
0answers
71 views

Integrating jQuery mobile page transitions with my theme

I'm trying to integrate jquery mobile page transitions using the advice on this site I have a functions.php file: function theme_js() { wp_register_script( 'jquery.mobile', ...
0
votes
1answer
47 views

Incorrect search results in search.php – issue triggered by using `define('BodyID', 'search'); the_post();` in search.php

I have a problem where the page title is not picked up in search results. I've narrowed the problem down to the following line of search.php in my custom theme. define('BodyID', 'search'); ...
0
votes
1answer
20 views

// File Security Check from WooCommerce [duplicate]

// File Security Check if ( ! empty( $_SERVER['SCRIPT_FILENAME'] ) && basename( __FILE__ ) == basename($_SERVER['SCRIPT_FILENAME'] ) ) { die ( 'You do not have sufficient permissions to ...
3
votes
1answer
105 views

What is best practice for writing/using custom PHP classes in a theme?

I want to use a custom PHP class in my theme, however I am not sure where to add it. Is there best practice used by the community for including PHP classes with a theme or is that an individual ...