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

learn more… | top users | synonyms (1)

0
votes
0answers
33 views

Upload media via PHP

I'm trying to upload an image to the media-section, that is uploaded as dataurl to the server. I already have the image written into the database and uploaded to the most recent uploads subfolder. ...
0
votes
1answer
70 views

JS file is not loading when i put wp_head() and wp_footer

In my WordPress project I need to use a WordPress plugin, For that plugin to work I have to put wp_head() and wp_footer(). But when I put that than my slider's JS file don't load. <script ...
0
votes
2answers
22 views

How to add style in functions.php depending on conditions?

I'm a newbie for coding, I would like to learn how to add css style conditionally in functions.php My header controlled by .header-outer class. What would it be the best way to add css depending on ...
0
votes
0answers
18 views

Posting from page linked to plugin

I am creating my first WordPress plugin and so far I am not doing to badly but looking for some guidance as not really sure if the way I am thinking of doing this is correct. I have a plugin that ...
0
votes
1answer
51 views

Non-static method error when trying to use class in widgets

I'm trying to call a method into a function widget. The $this of the widget is passed to that method, but I get the following error: Strict Standards: Non-static method class_name::method_name() ...
0
votes
1answer
23 views

Check if widget has content

I just need to check, if sidebar has any content My functions.phpcode is below. function aspirationas_extra_widget_1_init() { register_sidebar(array( 'name' => __('Extra Widget 1', ...
0
votes
0answers
31 views

How to unwrap/separate Html tags in pages?

I have around 300 pages with some of them having wrong HTML formatting that I have to fix. I want to: Separate the H1 tag from the inner tags. Moving the TITLE (found in span) to H1. Get rid of the ...
0
votes
1answer
258 views

How to avoid timeout waiting for output from CGI script?

I have Apache Error coming from /wp-cron.php. I didn't modify that file. How can I avoid the timeout?
0
votes
2answers
44 views

Azure Wordpress site - URLs not showing on move from root to subdirectory

Moved the site from the Root to a Sub-directory by following these instructions http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory Changed the Wordpress site URL and Site URL (the same in ...
0
votes
0answers
27 views

Filter on page with meta box post values

it's possible create an filter using the values of the meta box posts? Example: Name of message: Message one Year of the message: 2016
0
votes
0answers
35 views

Automatically Paginate Posts after specific number of words

I want to insert <!--nextpage--> (for paginating posts) after a specific number of words, and I want it to keep inserting the tag until the post ends. There is a plugin which does a similar ...
0
votes
1answer
36 views

Gravity Forms Marketo Plugin Feed [closed]

I am wondering if anyone knows any hooks that I could use for the Marketo Gravity form Plugin? Basically, I need to change the campaign Feed dynamically based on a variable that will be in the URL ...
0
votes
0answers
21 views

Show menu from plugin

I would like to include plugin menu into the theme. Did something like this: <?php add_action('after_setup_theme', 'my_load_plugin'); function my_load_plugin() { get_part( 'parts/menu', ...
0
votes
0answers
18 views

Plain text (HTML) in wordpress admin

I am developing my custom theme and I noticed that some of the links result in showing me plain text HTML instead of normal webpage. I tracked down the issue and found out that this happens when I ...
0
votes
2answers
26 views

views How to load javascript on custom page template?

I have a custom page template where I would like to load some javascript. I suppose I could always include the javacsript in the actual file, but that seems ugly. Is there any way to identify if ...
0
votes
1answer
44 views

Custom search search does not work?

I have a WordPress website with WooCommerce plugin installed. There is one problem that i cannot figure out why do I do not got any search results shown up when I do product search? Website URL with ...
0
votes
1answer
25 views

Accessing data from a non-WP database/table within a page content

I'm trying to convert a home built (PHP / MySQL) set of web pages to WP. I've installed the theme I want and have some basic pages working OK. However, I have a set of data within a MySQL database ...
0
votes
1answer
13 views

Can't make product images clickable

I've tried many things and many solutions but i can't make product images clickable. Here's the code: if ( has_post_thumbnail() ) { $images .= get_the_post_thumbnail( $post->ID, 'shop_catalog' ...
5
votes
2answers
77 views

Who's job is it to load a plugin's translated strings?

I've internationalised my plugin and am now looking at how best to load the plugin's translated strings. I'm including myplugin/languages/myplugin.pot with my plugin but am not planning to distribute ...
0
votes
0answers
16 views

Meetings page housing minutes on WordPress

The agency I work for are trying to create a meetings page housing the agendas and minutes. We currently hold the client's website, which we coded previously in ASP.NET. The screenshot above is ...
0
votes
2answers
62 views

How to check if a taxonomy not exists in a plugin

I made 2 plugins (Plugin A and plugin B/custom post type.) which some of the the module on Plugin A need to call taxonomy from PLUGIN B. Everything works fine when both plugin active, but when the ...
0
votes
0answers
24 views

Dropdown menu on custom theme not working

I am trying to create a dropdown menu for a theme I am developing but the sub menu items are showing up in the alongside the parent menu items. I have it saved as a submenu item here is what it ...
0
votes
0answers
18 views

MPT Usage with NewsPaper WordPress Theme

I am using Multiple Post Thumbnail Plugin with NewsPaper WordPress theme Plugin Documentation: https://github.com/voceconnect/multi-post-thumbnails/wiki/Frequently-Asked-Questions Hello, I used ...
0
votes
3answers
64 views

ACF allow zero as a value

I would like to have 0 to 5, and "n/a" as possible values, however this code will output "n/a" when I want it to output a zero. How can I get it to output "0"? ("n/a" is the placeholder if no value ...
0
votes
1answer
46 views

Get URL of Featured Image After wp_insert_post()

I want to get the url of a featured image. I've created a function with wp_insert_post to post data and set a featured image for them. Everything works fine except displaying the url of featured ...
0
votes
1answer
26 views

wordpress ajax return 0

I'm tryng to set up a panel, this one The menu on the top calls different ajax functions in order to display a thumb. Clicking on the thumb you can see the details in the last box of the panel. I ...
0
votes
1answer
41 views

Access Child Class of Plugin Main Class Instance

In a WordPress plugin where the author has defined a parent class and uses a standard instance method for other plugin authors to access the plugin example: function WP_Plugin() { return ...
0
votes
0answers
39 views

Woocommerce - Adding text count of a textarea to a variation of a product

I have a textarea that is a variation of a product in Woocommerce. As the user types, I have the JS output the character count. I am wondering how I can send this count to woocommerce to be added as ...
1
vote
4answers
69 views

Need a method for base_url() or home_url() in CF7 additional settings [closed]

For a redirect in CF7, on_sent_ok: "location.replace('https://www.mywebsite.com/pageid')" works well in the additional settings but I need to make my website more portable. I would like to use a ...
0
votes
1answer
29 views

Two theme locations for two menus, but only one is showing up

Here is what I try to achieve. I have two menus. One is going to be a top navigation that lists all the pages, and the other one is going to list post categories. in my header.php, I included the ...
1
vote
0answers
35 views

Can I check plugins and themes for PHP 5.6 ahead of global PHP server Update

My server is updating to PHP 5.6 next week. I manage about 30 WordPress websites. I looked for a plugin that would check if any of the code throughout the other plugins and theme would break with the ...
0
votes
1answer
28 views

Create a hierarchical loop at predefined markup requirements

I try to achive this in wordpress based on my theme: fullpage.js demo So I have a predefined markup for vertical sections (parents) and one for horizontal slides (children). Parents only contain ...
0
votes
0answers
28 views

Send data from plugin to external database

I'm creating a plugin that I need write data to an external database (not the wp db that the plugin is on). I know I can use require_once with a separate config file with the external db details in ...
0
votes
1answer
34 views

WP_Query() load selected post

I need to load a selected post in a ajax function, I have some problems writing the appropriate query that calls the post i'm pointing <?php $pb_id = $_POST['post_id']; $pb_details_args = ...
0
votes
0answers
101 views

Woocommerce - change price of a variation product programmatically

I have a product that has a variation called 'Width'. It is predefined at a certain price from woocommerce plugin. I want this Width variation to change based on what the user inputs so I need to ...
0
votes
1answer
35 views

How to echo a plugin's function into a template?

I've tried checking for a similar question but couldn't find one. If possible please link me to this as I might be creating a duplicate. Anyways.. I am using a basic testimonial plugin (Clean ...
0
votes
2answers
76 views

How to utilize WP-CLI from inside WordPress, not SSH?

I'm looking for a way to test out some WP-CLI commands but from the Debug Bar Console where I normally test PHP. For cases when I don't want to switch windows to SSH, this might be a way to ...
1
vote
1answer
21 views

How to periodically scrape and cache strings from remote txt files. - My First Plugin

I maintain a resource website, FilterLists, which is essentially a directory of txt files hosted around the net. I am trying to build my first WordPress plugin to (a) learn and (b) add a new feature ...
0
votes
1answer
16 views

Post added by PHP redirects to 404 [closed]

On my blog on http://www.hoopsgifs.com/ you can see the few posts I added. They are aaded via PHP. The stragen thing is when I click on the post it does not open the post. The same happens if I ...
0
votes
1answer
33 views

How to determine if WP_DEBUG is enabled? [duplicate]

I believe I saw this done in a few plugins before, but it has been awhile and I have no clue what plugins offered this or how they offered it, but what I am trying to achieve is this... I want offer ...
0
votes
1answer
24 views

custom stripe plugin

I am using some code that I found at pippins plugins for integrating stripe into wordpress. I have some custom functions I need to run after a payment is made. The code works great except for one ...
-2
votes
1answer
48 views

One folder to be accessible by one user

so I am making wordpress website and the idea is that I want to upload different files for the different users but I want the user to see only his files.The problem is that when I copy the url that ...
0
votes
3answers
39 views

dropdown with no submit

So I have a dropdown menu that has a list of all pages using a certain template, when the user selects a dropdown item id like them to be re-directed to that page. Here is what I have so far... ...
0
votes
1answer
17 views

Setting 'post_format'

Currently I have the following code for my automated posting process file. // Create post object $my_post = array( 'post_title' => wp_strip_all_tags( trim( $row['title'] ) ), ...
0
votes
1answer
22 views

echo var into wp_query

Im trying to echo out a value grabbed from a ACF field but I think im doing something wrong, could someone help me? <div class="news"> <div class="container"> <div ...
0
votes
1answer
32 views

PHP include statement not working?

Just started learning PHP and Wordpress. Why isn't my PHP include statement working in the following header.php file? <!DOCTYPE html> <head> <meta charset="<?php ...
0
votes
1answer
20 views

My wordpress site wont load, it gives header error warnings

I get the following errors when I try to go to my clients site. http://www.jmarkpricereading.com/ Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent ...
0
votes
0answers
27 views

List authors by first letter with letter per page

Currently I have this working with first letter of post title with letter per page. <div class="alpha_navigation"> <div class="inner_alpha_navigation"> <?php foreach ($letters as ...
0
votes
1answer
44 views

Controlling image output size ACF repeater [closed]

I am using ACF repeater and am not able to control the output size incorporating Wordpress theme support custom image sizes add_theme_support('post-thumbnails'); add_image_size('large', 700, ...
0
votes
1answer
24 views

Nav menu from plugin to theme

I would to take nav menu reference (I have id and class) from plugin to theme header.php...How can I do this? I used something like this<?php wp_nav_menu('id'); ?> but of course with failure ...