The server-side programming language that the WordPress core, plugins and themes are written in.
0
votes
3answers
44 views
How do I find PHP file that contains content of my page?
Let's say I have created a page in admin dashboard and put some content in it.
How I can find PHP file in my hosting file manager that contains that content?
0
votes
1answer
34 views
Post content not showing some content
I'm inserting posts by wp_insert_post function. It works like first a post is created to get its id then an image is attached to that post id. I attach images by media sideload function. Here is the ...
0
votes
0answers
39 views
How to exclude 2 Portfolio Categories from page?
I want to exclude 2 Portfolio categories (IDs 4 & 23) from a page using the code below but it still displays all categories. Similar code works for 'Posts' but not for 'Port' - can anyone see what ...
-2
votes
1answer
24 views
How can i display actor birtday links [duplicate]
Hy, i display actor retrived by a date piker, by day and month like that,
<?php
$todaysDate = date('md'); // Get today's date in the right format
$loop = new WP_Query( array(
'post_type' ...
0
votes
0answers
7 views
Load PHP/CSS file Externally [duplicate]
When building a theme, I'm using internal css code in the header.php file to change the options as needed. All other css is loaded externally.
Here is an example of the code:
<style ...
-2
votes
0answers
35 views
Getting actor by day and month [duplicate]
How can i retrive actor by birthday day and month.
I want to display the actor birthday.
"Today actors birthday" - and retrive the actors
How can i display only the actor born this day and this ...
0
votes
0answers
34 views
Wordpress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
I have been working on a theme for a few days and when I realized my JS file for my theme customizer wasn't updating I decided to clear the cookies and cache, and wow that was problematic. As soon as ...
0
votes
0answers
55 views
Custom “Latest News” widget wipes out the site
I want to register a custom "Latest News" widget, which would be teh exact copy of the default "Recent Posts" widget, with minor modifications.
Here's the original code, taken from the ...
-1
votes
1answer
26 views
Creating Features List in Wordpress Post
I want to create features list in wordpress post. I know how to do in CSS but I was wondering if it can be done by using a short code or a plugin?. Like
[features_list]
Item 1
Item 2
[/features_list]
...
0
votes
2answers
16 views
Display message depending on capability outside loop
I want to display a unique message on the post (single.php) page outside the loop on author box. I want the message to be different depending on the author's capabilities. So for instance, if the ...
0
votes
1answer
65 views
How to edit php code in WordPress Post file?
I have a wordpress page. In that wordpress page, user will have access to the following Window to Publish their Post in to the webpage.
If the user enters an URL in any of the three filed I have ...
0
votes
0answers
37 views
Host does not allow remote connection, so how do I transfer data to my WordPress site?
I spent the last week trying to get my PHP code on my website to connect to my remote "personal" computer to display some data on a webpage. I just found out today from my web host (ipage)
"our ...
0
votes
0answers
11 views
If user removes section with theme customizer I want it to add padding to footer
I added the ability to the theme customizer for the user to remove a section that is above the footer. The issue is when the section is removed it is causing the links in my footer to move up.
How ...
0
votes
0answers
25 views
Problem with function not executing
I am sorry for the long post but I wanted to be thourough in hopes someone could help me figure out this issue. I have been trying to get it working for 2 days with no such luck. I would appreciate ...
1
vote
0answers
31 views
Way to add captions to gallery images by code
I am creating posts by using wp_insert_post function. It works fine as I provide values in array required. Sometimes it is required to create a post having gallery. Without any problem, it also works ...
0
votes
0answers
31 views
How to change the font size of title of the slider in extensio template? [closed]
I am currently working on my website in wordpress. I use the theme template called "extensio". I would like to change font size of the title in the slider but I cannot find out any settings for it.
...
0
votes
3answers
60 views
Display random image url from list of input values
I have created an options page in my WordPress theme that allows the user to input a url/upload an image to an input field. The field has the name headerimage_options[image] and when it is populated ...
0
votes
1answer
32 views
How to change pagination base from slash to query form?
Can this function...
function custom_pagination_base() {
global $wp_rewrite;
$wp_rewrite->pagination_base = 'p';
$wp_rewrite->flush_rules();
}
add_action( 'init', 'custom_pagination_base' );
...
2
votes
0answers
112 views
PHP Fatal error: Out of memory / Unknown Error On Line 0
I know this has been posted a number of times but I'm getting really stuck so thought I would see if anyone can help.
My error logs keep getting these errors
[24-Apr-2013 01:25:44] PHP Fatal error: ...
0
votes
0answers
27 views
WordPress won't display errors at all
I have been having constant issue with WordPress not displaying errors at all and I have no clue what is wrong.
PHP errors display on non-wordpress related pages.
Debugging is turned on.
Display ...
0
votes
0answers
47 views
User driven content problems
I am trying to build a website that will allow users to post from the front end. I need to be able to have the user enter a title, a category, and tags. For the content of the post, I would ideally ...
0
votes
0answers
41 views
Trying to post information from a remote database to wordpress page
I'm fairly new to Wordpress and looking for some help.
Goal: I would like to stream data from my personal computer's Mysql database and display it on a webpage in my offsite Wordpress hosted site. ...
0
votes
0answers
8 views
floating div stop at a div [migrated]
I have a floating div on the sidebar that scrolls with the page. Is there a way to add code that makes it stop when it reaches the footer?
See code in action: http://openbayou.staging.wpengine.com
...
0
votes
1answer
61 views
Wp favorites posts by specific category?
Well, let me get to the point, im trying to Display a specific category using the Wp favorites posts plugin this is what im adding $category_id = get_cat_ID('news'); but it doesn't seem to work it ...
-2
votes
0answers
15 views
create a list of files in a given directory [closed]
I would like to achieve something quite easy from the shell not so much on a managed host where I'm running my wordpress.
Basically I would like to run a simple script such as:
ls -1 ...
-2
votes
0answers
39 views
Dynamic CSS in WordPress [closed]
In a dynamic stylesheet, I have some styles that look like this:
#block1{
left: <?php $left = rand(1, 600); echo $left; ?>;
top: <?php $top = rand(1, 600); echo $top; ?>;
...
0
votes
0answers
26 views
How do I link a button I created in theme customizer to a function?
I created a button in the theme customizer and I want to use it to execute a function? All I can find is using controls to add theme settings such as CSS and text. Although this button is to clear out ...
1
vote
1answer
22 views
Add user settings to specific roles
Is it possible to do this? I already know about get current_user_can(), which does not work like I need. I'd like to be able to use an array if there are multiple roles.
// Check roles to only add ...
0
votes
0answers
32 views
Created custom control from theme customizer, where should I add code it will control?
I have created a custom control for the theme customizer which is a simple button and label. I am going to be using it as a theme reset button that will clear the theme mod settings to their original ...
0
votes
0answers
27 views
How can i retrive the movies, trailers, news in a single page using search
How can i retrive that. For a few month i build a website, and i want to make it diferent
For the search i have 3 post type, and i have for each diferent themes for display
- Movies
- Trailers
- ...
1
vote
1answer
39 views
List of all theme customizer control types?
I have been looking through the theme customization API documentation and google to simply find out the names of the control types already built in to the theme customizer.
More specifically I am ...
0
votes
1answer
38 views
How to add button to top of theme customizer?
I am trying to figure out how exactly I can add a button to the top of the theme customizer. The spot I am talking about is where the "close" and "save" buttons are. The ones that are above everything ...
0
votes
1answer
70 views
Specific Loop For 2 <div> Within Each <li>
I need to create a loop that can logically be described as the following for a carousel:
Requirements:
3 Loops
2 Posts Per Loop
No Duplicates
Order by Post Date
Visual:
< Start Loop #1 >
...
0
votes
1answer
30 views
Exclude category
I want to exclude a category from showing in a function, but cannot figure out how to do it for my specific code as below. I want to make it so that any post that is in the "featured" category, does ...
0
votes
2answers
27 views
Creating a press page for our project
Over time our project got some good press: press releases, interviews, media appearances
Now I want to create a "press page" (something like this). Requirements:
is easy to update - everyone can ...
0
votes
1answer
22 views
WP white screen of death after duping a site that works fine on same server
I have simply duped a site that runs absolutely fine on a separate domain into a sub directory of another domain for development purposes. I have zipped the /httpdocs/ directory excluding cache and ...
-1
votes
1answer
38 views
problem with php function error
Hi I seem to get this message
Warning: Creating default object from empty value in C:\xampp\htdocs\wp-content\themes\knowledgepress\lib\ticket-functions.php on line 851
However looking at the ...
1
vote
1answer
115 views
Wp favorite posts get user favorites in profile using buddypress
Im currently encountering a problem i display user wp favorites posts fine, but the issue
is i wont display them, once users are logged out it says " no posts have been made"
while each user has ...
0
votes
1answer
21 views
Using a loop to build and update widgets
So I have a widget Im making which allows users to update 4 switches. Each switch has the same fields, name, description, price, amount so I decided to build the widget using a for loop instead of ...
0
votes
0answers
46 views
Uploading Image to post type image fails
I am trying to upload a image to a post and everything works successfully except the image keeps coming up broken, like the image is not uploading correctly. When I go to look at the image in the ...
0
votes
1answer
56 views
Custom Post not working as expected
NEW EDIT I solved it, as written in answer, the problem where that variables are 'forgotten' (not so techy I know, sorry for this) when
function starts.
EDIT: I found the problem is this: ...
0
votes
0answers
40 views
jQuery vs. $ - Creating jQuery scripts in JavaScript in WordPress using External Libraries
I am trying to utilize Trent Richardson's Date Time Picker (see here).
I am trying to get the selected time when the popup closes, so I am using the following code (in an external .js file):
...
0
votes
0answers
145 views
Creating a custom Jquery modal form to upload data in wordpress 3.5.1 [closed]
i am new to jquery.I looked to various demos but can't find what i am looking for.
I want to add a upload item feature in my wordpress website.This feature is available to the end user after he/she ...
0
votes
0answers
32 views
Wordpress adding in site URL to header links
A little information: I am developing a one page theme that uses posts as sections on the main page. I have created code that allows users to add a menu item in the post page from a meta box when they ...
0
votes
0answers
25 views
Automatically create a user with author rights from outside of Wp-admin
Need to create a user on the fly based on the following steps...
User clicks a link in an email with a unique url such as
1234.domain.com/?auth=42344245534534535
when the user clicks through to ...
0
votes
0answers
32 views
How to tell if string is null or empty in meta value? [closed]
I am trying to figure out how to find out if a string is null or empty in php. The place I am pulling the value from is a meta value that is stored from a meta box on the post page.
I want to check ...
0
votes
2answers
38 views
How can I redirect this contact form to a specific permalink
I'm converting a HTML site to WP for a client and they have a simple contact form in place.
If the submission is sucessful it currently, in it's HTML form, sends them to thankyou.html but I want to ...
-1
votes
0answers
19 views
How to build a search form explanation [closed]
Can somebody help me to build a advance search form like this...http://www.tvblog.ro/seriale-tv/
Wath keyword i shoud search on the web to find more explanation
A short model would be apreciate..
0
votes
1answer
96 views
Using loop pagination on single.php
I want the main front-page loop to show in a section on both index.php AND single.php templates, with pagination.
Pagination works fine on the homepage, but not on single posts. This is the code ...
0
votes
1answer
37 views
Not able to call class in NHP framework
I have downloaded fresh framework and installed on my local server. I copied options folder and nhp-options.php inside my theme directory. Then I called the class globally by
global $NHP_Options;
...

