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

learn more… | top users | synonyms (1)

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
20 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
17 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
24 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
76 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
61 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
25 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
68 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
28 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
27 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
32 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
92 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
74 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
20 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
21 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
26 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 ...
3
votes
1answer
41 views

wp_get_attachment_url filter won't accept two arguments

Here is the specification for the filter for the wp_get_attachment_url filter: /** * Filter the attachment URL. * * @since 2.1.0 * * @param string $url URL for the given attachment. * ...
0
votes
2answers
37 views

Using wordpress function to retrieve data

I have been working on open source plugin and trying to add a new feature to it. For now I have been doing like this else if( $selected_report == "greport" ) { $sql = mysql_query( "SELECT ...
0
votes
0answers
18 views

wordpress query between zipcodes not working

Ok, I have this code that checks for zipcodes in the database, normally I can simply do a between query, but the zipcodes are stored in the following way: zip_code::2025 (meta_value in the usermeta ...
1
vote
2answers
27 views

ACF check if variable has http, if else return string

Trying to check if $link has http:// in front of it or not. If someone puts in www.google.com for the link field it acts as a link within the WordPress site, ie: www.website.com/www.google.com. $link ...
0
votes
1answer
23 views

Creating a child theme after numerous edits to parent theme

So a quick explanation: I started messing with Wordpress a couple of years ago, having experience with HTML, CSS and some PHP. At that time I was paid a few hundred bucks to whip together a ...
0
votes
0answers
27 views

Single-{custom}.php doesn't exist not matter what I do

This question has been asked and re-asked, I know because I've found every one of them here already. I don't know why I can't find the hint that I've messed differently than others so after hours of ...
0
votes
0answers
21 views

Converting Static HTML to Wordpress using little wordpress functionality

I'm trying to convert a site that was built as a standalone HTML site with various assets based off of the Smarty template that also includes custom CSS and JS. The site has a total of 6 pages with ...
2
votes
0answers
32 views

category_name not working (not showing up in sql query debug)

My plugin has a shortcode and it retrieves animals. There are filters/arguments and they all work well except the category argument or parameter. The category name(s) is/are well passed to my ...
0
votes
1answer
33 views

meta query not retrieving posts

I am attempting to use get_posts() to retrieve posts that have certain topics attached to them, in my custom post type named 'leaders' Here is my query. $args = array( 'post-type' => ...
0
votes
1answer
21 views

Why is 'admin' missing from my admin links?

I cloned a wordpress site to my local machine. Then I ran PHP's built in web server in the root of the WordPress site, via 'php -S localhost:3000'. I added my db credentials in wp-config.php. Then I ...