The server-side programming language that the WordPress core, plugins and themes are written in.

learn more… | top users | synonyms (1)

0
votes
0answers
4 views

How to define Og Meta Tags in header using conditions

I'm trying to configure my Facebook Og meta tags in my header so I get a different result on the type of page I want. I've been hitting some road block that searching through google haven't been able ...
0
votes
0answers
7 views

special character “-” is not properly displayed in json response?

I want to display - instead of that characters. How can i get it? Actually i tried with the below code: header('Content-type: application/json; charset=utf-8'); // Even i insert the charset=utf-8 ...
0
votes
0answers
6 views

Validating CAPTCHA field on WP Log-in Screen

I am using the Really Simple Captcha Plugin and have the following lines of code in my theme's function.php file: function wp_register_form_captcha() { if(class_exists('ReallySimpleCaptcha')) { ...
-1
votes
0answers
19 views

Why wordpress plugin shortcode doesn't work properly with IE

I recently working on a wordpress, plugin, it already reached a final stage, and all it left is cross browser compatibility, the problem is why shortcode doesnt work properly With IE. Below are My ...
0
votes
2answers
34 views

Count Title and Post Characters

I need to get a total count of characters for post titles and post text characters. Are there any build-in WordPress functions available for that? My posts are paginated so the numbers for post text ...
0
votes
1answer
31 views

PHP Script for last login time

I've got this script to update a table in my database with the logout time of a user, then when they log in next time, this data is shown in the form of "Last login: date time". However this isnt ...
-2
votes
0answers
18 views

Unicode conversion in sql database

I am inserting the post titles and post body in UNICODE, but i dont want to save in unicode UTF8 characters. Instead, i want to use my title and text body convert function automatically and display ...
0
votes
1answer
21 views

Use page.php for front page

For some reason even when I am selecting a static page for my homepage it is still choosing to load the index.php file. I would really appreciate your help on this as I would like it to load my own ...
-1
votes
0answers
11 views

Modify Header file of Optimizepress [ op_theme_file('header') ]

I have tried to edit the default header of Optimizepress, I have edited the blog header, but it seems I can't edit the default page header. On header.php its written <?php op_theme_file('header') ...
0
votes
0answers
8 views

comment_post and preprocess_comment connected

In my comment_form arguments i add a input label with a value: 'comment_notes_after' => '<div id="canvasDiv" ></div> <script type="text/javascript"> ...
0
votes
0answers
16 views

get all categories post in json format?

<?php include("../wp-config.php"); header('Content-type: application/json;'); $jsonpost = array(); //for each category, show all posts $cat_args=array( 'orderby' => 'name', ...
-4
votes
0answers
12 views

How i can have the best optimization on wordpress [on hold]

I need some help to optimize my blog, any sugestion or help. thi is my blog http://tecnologiageek.com/
0
votes
1answer
17 views

Generate responsive post thumbnails of same size

I am using a function to display related posts in my wordpress theme with their thumbnail. I am using uikit to make my theme responsive. Uikit offers a grid feature similar to the bootstrap one, and ...
1
vote
2answers
163 views

Why declare $post globally?

I'm new to Wordpress development and am seeing examples everywhere that have a line to declare the $post variable explicitly via: global $post; But I've tested my uses without that line and it ...
0
votes
0answers
7 views

Displaying Custom Post Type on Page with Same Title

I'm building a sports blog. I have a custom post type called conference. Each conference post contains HTML that is displays the team logos horizontally on my team custom posts as shown in the ...
0
votes
1answer
29 views

Occasional include / require_once fatal errors

I've been noticing a relatively rare occurrence with WordPress installs on one dedicated server. Once in a while a page will fail to load due to a PHP fatal error for trying to include or require a ...
1
vote
1answer
29 views

Is it acceptable to treat a filter like an action?

The wp_insert_attachment_data filter is available inside wp_insert_attachment(). It allows attachment post data to be filtered before it is updated in or added to the database. $data = apply_filters( ...
0
votes
1answer
74 views

Cannot modify header information - server cache

I have a wordpress website hosted on Lightspeed server. There's an error message displaying in admin login page and I can't access wordpress backend. This is the error Warning: Cannot modify ...
0
votes
0answers
12 views

Flexslider won't work on Wordpress

Hi guys I recently created a custom post type for flexslider on my Wordpress theme. However upon testing it got some issues. The slider is showing up but the images wont show up on it. There are two ...
0
votes
2answers
71 views
+50

Building a plugin into a theme

Firstly, I know this is 'bad' practice for several different reasons, but for reasons that I won't waste your time with it's something I need to do. Using a fairly simple plugin and I've tried ...
0
votes
1answer
19 views

Why isn't my link attribute getting my css?

<link rel="stylesheet" type="text/css" href="style.css" /> That is the line I am using. The style.css file is in the same directory as the file I am running that from. Tt specifically just ...
0
votes
1answer
9 views

How to map my php files as the files for pages

How do I map my php files (like a file that is supposed to be the page "blog" and it contains all the html and php) to the actual page the html is supposed to be marking up many thanks note: I would ...
0
votes
1answer
29 views

Changed URl in General Settings now Wordpress site doesnt work

My website URL was www.example.com/singer I decided to get rid of "/singer" in the dashboard and ever since i have met with this error. Fatal error: Call to undefined function wp() in ...
1
vote
2answers
28 views

How to use an associative array in post__in with WP_Query?

I have stored user favorite posts in the user_meta table of WordPress. The data is stored in a format, for example a:1:{s:8:"post-134";s:3:"134";s:8:"post-136";s:3:"136";}. How can I get this in the ...
0
votes
0answers
19 views

Creating two loops. First for latest post or latest sticky, second for all other posts

I'm new to Wordpress and PHP and I've been battling with this for a while now. What I have for the moment is 2 loops. I want to first loop to only ever show 1 post: either a sticky post, or the ...
0
votes
1answer
23 views

No Authors for custom post type

I am trying to implement custom post type in Wordpress. plugin: Advanced Custom Fields register_post_type('acf', array( 'labels' => $labels, 'public' => false, ...
0
votes
0answers
14 views

Looking for a answer regarding coding problem in wordpress. [closed]

Parse error: syntax error, unexpected ';' in /home/micram10/thebaysbesthomes.com/wp-content/themes/theme18020/footer.php on line 4 I am a va and don't have wordpress coding compatibility. However, I ...
0
votes
1answer
20 views

Why the dynamic_sidebar() call is putted into an ul tag?

I am pretty new in WordPress development and I have the following doubt about how the sidebar are putted into a WordPress theme. Looking into the official documentation: ...
-1
votes
0answers
13 views

Games product for hire monthly [closed]

I want to display games products on my wordpress site with hire and reserve button for monthly subscription. Can somebody told me the right plugin or code? Thanks in advance.
1
vote
1answer
27 views

Activate different theme for temporary preview

I wanted that when i access my site with specific parameter, my site used a different theme at that moment (only temporarily, to show only to me as a preview). I want it for test purposes. Is there ...
0
votes
0answers
29 views

Property value of null when value is assigned inside a method hooked to the wp action hook

In my_method() below, I'm assigning an array of post IDs to the property $this->post_ids which is to be used later on in my query args - see process(). If I hook my_method() to the init action ...
0
votes
0answers
14 views

mysql Join wp_users,wp_usermeta and a custom table

I am doing a search functionality based on three fields: servicename, state, zipcode. I have to filter the users. The servicename is in a custom table named wp_doc_services, while the other two fields ...
0
votes
1answer
23 views

At what point during a typical request does the $wpdb object become available?

I've wrote some custom SQL queries inside a class method and noticed they seem to work if I hook the method to the wp action. If I hook to the plugins_loaded action, they don't seem to work. My ...
0
votes
0answers
15 views

How to access .php file directly in wordpress site

I want to access one specific file with .php extension. Similar to, http://www.pnrstatus.co.in/trainschedule.php At the same time, want to access the blog content with wordpress permalinks. Similar ...
0
votes
1answer
23 views

Hide cart when empty [on hold]

Could someone help me with this syntax: At the moment I have a simple link to my shopping cart like this: <?php if ( is_woocommerce_activated() && isset( ...
0
votes
0answers
14 views

How to modifiy All in one event calendar shortcode?

I am using All-in-one-event-calendar plugin in word-press for events. In my theme file i have added. <?php echo do_shortcode('[ai1ec view="monthly"]')?> //for calendar Can i add modify ...
1
vote
1answer
47 views

How to get author ID when an author page is being viewed?

I'm having problems getting the author ID in my plugin's init() method. I've hooked init() to wp: public function __construct() { add_action( 'wp', array( $this, 'init' ) ); } My init() ...
0
votes
0answers
11 views

Display the nav menu for a particular page id

Say that I have the id of a page that is in the wp_nav_menu() I would like to show the wp_nav_menu() for that particular page. Is that possible? I can use wp_get_nav_menu_items() to get all items for ...
0
votes
0answers
25 views

Changes required to make new plugin from existing

I have a gallery plugin script I found here: http://wp.rosselliot.co.nz/user-images/ This allows users of my site to upload their own gallery photos -- these photos can only been seen by the uploader ...
0
votes
0answers
15 views

add bootstrap modal after login in wordpress

I'm trying to add a boostrap modal just after login in my website. I have my javascript: jQuery(document).ready(function($){ $('#after_login_modal').modal(); }); I have my div: <div ...
1
vote
2answers
110 views

How to get a list of all users registered before a given date?

I was expecting to be able to do something like the following which I thought would return all users that have registered before a given date: $args = array( 'post_type' => 'post', ...
0
votes
2answers
22 views

How to arrange PHP files to allow for multiple types of pages

I am new to WordPress development (the most I've ever done on the web design/development side of things is creating basic HTML sites); so this may be an extremely simple question, but I am trying to ...
-1
votes
0answers
40 views

Fatal Error relating to sessions.php

here is the error code I have Warning: Unterminated comment starting line 2079 in /home/teamspor/public_html/wp-includes/user.php on line 2079 Warning: ...
1
vote
0answers
42 views

Contact form won't submit

I posted this on the Stackoverflow site and haven't received much assistance with the issue. I hope that, by reposting it on here, someone could please offer me any assistance. I am creating a theme ...
-1
votes
0answers
15 views

BBPress shortcode to display user profile [closed]

Currently if I access the user's profile of bbpress (ex: http://example.com/forums/users/admin/) then it'll list the profile, topics started, replies started....) from the viewing user. Is there a ...
0
votes
0answers
16 views

Using Wordpress functions in custom PHP file without any output to the page?

I need to use Wordpress functions get_option and update_option in a custom PHP file. However, I also need to be able to redirect using headers at the end of the PHP script. Requiring wp-load.php or ...
1
vote
0answers
9 views

edit search.php to include subdomain posts

Is there a way for us to edit the search.php to include the subdomains with its search results? The only "condition" the code has is... ...and I have really nothing more to go by. =/ And oh, I ...
0
votes
1answer
27 views

How to show an entire post content and not also the excerpt?

I am pretty new in WordPress theme development and I have the following problem showing posts. You can easily understand what I mean opening this link: ...
0
votes
0answers
21 views

How do I initiate imagesLoaded with Masonry in Wordpress 3.9? [closed]

Im trying to style a grid using the built in Masonry in Wordpress 3.9. It works great, except that the grid fails to display correct at first pageload, but adjust on the second. I guess this is ...
0
votes
0answers
36 views

Wordpress loop only displaying one post

I don't know enough PHP perhaps to recognize immediately why the loop in my wordpress theme is only displaying one post and so I humbly ask for assistance. <div class="container"> <div ...