Questions tagged [code]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
521 views

How do I validate extra pin field on my WordPress login form page?

I have been able to add an extra field to my WordPress login form using the following code inside wp_login.php file, thanks to stackxchange. add_action('login_form','my_added_login_field'); function ...
 Victor's user avatar
0 votes
1 answer
21 views

Client on iPad accidentally adding <code> tag to posts while writing

A client of mine complains that text gets 'randomly highlighted' when he is writing Wordpress posts on his iPad Pro. He uses the web interface. I got him to stop deleting the 'highlighted' text and ...
retrocool's user avatar
0 votes
1 answer
512 views

Changing input type from text to multi select dropdown - skill taxonomy

Really need help with a wordpress code please. I have a field on a form which adds tags to the post. Problem is, its free for anyone to enter anything. This keep populating the "skill" taxonomy. The ...
Rifat's user avatar
  • 1
1 vote
0 answers
29 views

Is there a way to create embed codes from wordpress/buddypress content?

I am looking for a way to create embed codes for content like, posts, images, videos, comments and buddypress content and components to be posted on external websites and apps. So for instance ...
Float Developers's user avatar
0 votes
0 answers
31 views

Write html code in comments

For example i am writing this html code into comment textarea <pre><code class="language-php"><?php echo esc_html( get_post_meta( get_the_ID(), ‘_spp_count’, true ) ); ?></code&...
wpdev's user avatar
  • 539
0 votes
0 answers
51 views

'[code]' shortcode to markup programming code does not work

I have been trying to embed some simple code on a practice blog and it has no effect other than to display the tag as text. I am aware there is no code in the image but believe me I have tried. The ...
Edwin Fairchild's user avatar
1 vote
0 answers
219 views

How to save inputed data in a textbox [EDITED] [duplicate]

This was asked before. I am re-posting it, edited. So I am making a website using WordPress, and I wanted to make a text box that saves something that is typed in it. Let me explain: Users (signed ...
Cryptic Hunt's user avatar
0 votes
0 answers
17 views

Code for cron to delete posts that contain specific expression (e.g. "unable to fetch" every 30 minutes

Please does anyone know a code that can automatically delete wordpress posts that contain a specific phrase? I want to execute it in a cron to delete such posts at regular intervals say 30 minutes
Aisha Templar's user avatar
0 votes
1 answer
6k views

admin-ajax.php 400 bad request - whats wrong with my code?

I'm getting a 400 bad request from admin-ajax.php & warnings from pagespeed insights tell me it's an issue. Can you see any obvious issues in the code in our admin-ajax.php file? <?php /** * ...
David Smith's user avatar
0 votes
1 answer
72 views

How to change the link on the logo at the menu?

I'm working on my site, it been done with a site builder so the logo on the menu has a default link to my homepage, but I need to change this link so it goes to another page instead of the default ...
Luis's user avatar
  • 1
0 votes
1 answer
540 views

Updating User Meta using Theme My Login with Custom Fields

I am trying to create a better login and registration form on wordpress. I have installed TML by Jeff and it works wonderfully. However, I am trying to further extend the registration form. I have ...
nateb2127's user avatar
0 votes
1 answer
35 views

Disable File Editing function

Researching fixing errors while validating my site, I got brave and clicked Enable button at Appearance > Editor and went pass the "warning" - now getting nervous bc don't want to accidentally mess ...
Ann's user avatar
  • 1
1 vote
1 answer
698 views

Wordpress change Language not working

My issue is, that I want to change the Language to German (de_CH) and BBPress etc. should change the language too. I know not all Plugins are available in German. However whatever I do, add them ...
frizzant's user avatar
  • 123
0 votes
1 answer
166 views

Table styles disappear when updating content

The tables on my website all have custom code for their style. Lately, when I go in to edit the content of the table (not the code), the style will completely disappear on the webpage when I update it....
Liz's user avatar
  • 1
0 votes
2 answers
369 views

Drop down list code for sidebar

For starters, I'm not a programmer but I'm good at cut and paste. :) I want to create a drop down list that displays each post and I've done that by putting this in my functions.php child theme file ...
rolandogomez's user avatar
1 vote
1 answer
327 views

Insert custom PHP head above <html> in WP pages

I've made a WordPress site. Before, I had a coded site in HTML. My new WordPress site is still in maintenance mode. But, I want to insert a PHP code above all the website content. This is my code: &...
Luuk F.'s user avatar
  • 13
0 votes
1 answer
49 views

How to do a code in php and have text before it? [closed]

So I have this code: the_title() And I am trying to add some text before it. So, it would end up like this: PAGE TITLE: (page tile) => PAGE TITLE is what I am trying to add before my code. However, ...
Ali Mosallaei's user avatar
0 votes
2 answers
121 views

WordPress code problem [closed]

I have this code shown in the picture on top of the search bar. It appears on all pages. I have checked all the plug-ins and it is still there. I don't know what to do next.
Daniel Cowen-Rivers's user avatar
1 vote
1 answer
36k views

how to remove the top navigation bar or header top on wordpress website?

My website (bargainbosss.com) all of a sudden started displaying a navigation bar at the top of the website. I don't have that menu option checked, only a primary menu. I can't figure out how to ...
bargainbosss's user avatar
0 votes
0 answers
109 views

Manage recurring event time

Hello I'm trying to make a list of medications, the time to take them is recurring so I must have a repeater and an opening time. So I created it as follows: <form action="#"> <input ...
Filipe Coutinho's user avatar
1 vote
1 answer
4k views

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'greenday_head' not found or invalid function name

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'greenday_head' not found or invalid function name in /home/xnvrtebr/public_html/Blog/wp-includes/class-wp-hook.php ...
Doc Brown's user avatar
1 vote
0 answers
224 views

Send notifications to custom post author when custom post is edited

I've made a custom post type that works as a ticket service. I need to send notifications to the owner of that post (author) when the post is edited (changes status or has been saved), usually edited ...
Dario Filidei's user avatar
1 vote
1 answer
84 views

What kind of data is that?

I'm going to use a plug-in in WordPress called RegistrationMagic. And I need to access the data saved for further use in front-end for a reason. I was looking the tables in MySQL and found the data ...
Danilo P. da Silva's user avatar
0 votes
1 answer
15 views

Website Tablet Check Out Field Issue

So on my website of http://www.camerabeanbags.co.uk/checkout/ if you set the browser to 768px wide the 'phone' and 'e-mail address' fields can not be clicked in for text to me typed in. These work ...
Harvey's user avatar
  • 53
0 votes
1 answer
740 views

style.min.css code issue

Okay, My site report is here that I am developing - https://tools.pingdom.com/#!/bBE0r0/www.waggypetservices.co.uk/ My only issue now is that something is calling style.min.css when this doesn't and ...
Harvey's user avatar
  • 53
1 vote
1 answer
4k views

Add footer.php to Wordpress child theme

So I am using the theme of 'Mesmerize' I have created a child theme but want to change some of the footer php within the child them so when there is a theme update the changes done reverse. This is ...
Harvey's user avatar
  • 53
0 votes
0 answers
113 views

wp_editor save all content

Sorry my english is very poor. I have create a new y theme for wordpress, and create new category for user download, but in the backend(admin) i have add wp_editor(), in subcategory, but when i save ...
Juan Carlos Quiles Estruch's user avatar
-4 votes
1 answer
192 views

Where do I go to add a tag before the closing body tag?

I need to disable Rich Pins for one post and was told to "add this tag to the header of your page before the closing body tag. " Where specifically do I access that to add the tag? Thanks in ...
lynn's user avatar
  • 1
2 votes
1 answer
1k views

Can I run custom php on specific pages in wordpress?

I'm making a wp site as a new frontend to an in house system that I designed a while back. I want to be able to run custom php for grabbing different bits and peices of stuff from my database (mysql) ...
John's user avatar
  • 121
1 vote
0 answers
46 views

wordpress search word, “hello world” ===> ‘hello+world’ ===> ‘hello’, ‘world’

I need a Function Code to improve the wordpress search engine For example, if the user searched: Hello world First, the results of Hello + World are searched and the next results: Hello and world ...
Payam Hahemi's user avatar
7 votes
4 answers
27k views

What is this code in my theme's functions.php? if (isset($_REQUEST['action']) && isset($_REQUEST['password'])

This code appears in my theme's functions.php, also in child theme's. I've deleted it for two times but it comes back. What is it? if ( isset( $_REQUEST['action'] ) && isset( $_REQUEST['...
Topy's user avatar
  • 163
0 votes
1 answer
37 views

Need to create a custom page on a website

I recently started my first wordpress task and it's about creating a custom page within a website. Now I know my PHP, CSS and HTML but while I am being used to working with angular etc. this is a new ...
user3197307's user avatar
1 vote
1 answer
7k views

Copyright info change in Theme Child PHP

Below is the file where the information is pulled from. I have tried adding the /inc folder to the child theme and adding the template-tags.php with the changed but this does not make any affect. /...
Harvey's user avatar
  • 53
-1 votes
1 answer
7k views

How to get the Woocoomerce subtotal value without tax in the hardcode? [closed]

I'm trying to find the subtotal value without tax in the hard-code. I want to use the value after people have completed an order and run some code there. I thought it was $order->...
Mads Spjøtvold Berland's user avatar
-2 votes
2 answers
609 views

Where to put include php file?

I have a third party php form code that starts with: <? include("xxx-xxx.php"); ?> <form method="post" action="https://www.xxxxxx etc etc.... Where do I have to put the xxx-xxx.php file for ...
Nic's user avatar
  • 1
-2 votes
1 answer
33 views

Add variable : 1 Week ago

Could you explain to me how add filter date : "1 week ago" Thanks for your help /* Variables from the widget settings. */ $title = apply_filters('widget_title', $instance['title'] ); ...
Skysool's user avatar
-1 votes
1 answer
15 views

Commenting in CSS (//) equals "none"? [closed]

I am beginner in site development and made all changes in my main theme. Now I want to transfer it all into child theme and faced this question. Are examples below equal? .entry-header-wrapper { //...
Vladislav Makeev's user avatar
-1 votes
1 answer
2k views

Code in functions.php appearing on front-end and dashboard [closed]

My WordPress theme is so minimalistic, that it didn't even have a functions.php file. But I wanted to use Google Fonts in my site. I read on elsewhere (www.designbombs.com/add-google-fonts-wordpress) ...
Chevindu Wickramathilaka's user avatar
0 votes
1 answer
48 views

Automate configuration after new/hosted installation

Lets say I launch a new WordPress site at a hosted provider such as WPEngine. As I start to configure my site (install a template, install plugins, create layout and content for my pages, etc.), is ...
Suraj's user avatar
  • 101
0 votes
1 answer
1k views

Variable equals another variable and then equals another variable

I have been trying to get a grasp of WordPress Theme Development. I have some understanding of JavaScript and PHP. When I was trying to figure out how to use the media uploader and I found several ...
Bob's user avatar
  • 1
1 vote
2 answers
33 views

I want to remove the home page header image from all other pages

I want to remove the home page header image from all other pages. When you click an individual article, the feature image and header image blend into each other in an unflattering way.There needs to ...
Sarah's user avatar
  • 11
11 votes
2 answers
9k views

Include WP_Query in my own PHP file?

I want to write a cronjob for myself. But I need to get access to WP_Query and the permissions to delete posts etc. My question now is, how can I include the WP_Query function to my own PHP file and ...
Jan's user avatar
  • 307
2 votes
1 answer
2k views

Can I view my own wordpress php source code on my hosted web server?

OK so everyone must ask how to see the php source code sometime and I asked it to myself too. and yes I know it that the php is processed by the server before outputting it to web page, so with that ...
AutoBaker's user avatar
  • 151
0 votes
2 answers
81 views

Need an elegant solution to declare the value of two variables based on the count of the post

I'm displaying three posts (custom post types) with a foreach loop, each displaying an audio player and some metadata. The audio is played via JW Player, which I am calling using their api. There is a ...
semidivine's user avatar
2 votes
1 answer
3k views

Beautify WordPress HTML output without any plugins

Is there a simple (and without plugin) way to clean up the WordPress output of HTML? With a beautiful indentation of the code? I don't understand why, but my HTML output isn't perfect and it makes me ...
William Ode's user avatar
0 votes
1 answer
331 views

How to insert integration code for CRM?

I use the CRM (bpm'online) and want to send the registration data directly from the site to CRM. Now I do it via Google Forms. CRM vendor provides the HTML-code that should be installed onto the code ...
Vlodko 's user avatar
1 vote
2 answers
7k views

How to run a function in every page, every device

I need to run a function on my Wordpress, on every page of the site you'll visit, on every device, and template used (PC, Tablet, Mobile, ...). This function will check if a Cookie has been set. If ...
Francesco Martelli's user avatar
0 votes
0 answers
317 views

Some code is added automatically to my site's header - what is it?

I tried a lot to understand what adds the javascript code below to my site's header, right after <head> in my WordPress website. I don't have any plugin that would do that, it just appeared ...
vyperlook's user avatar
  • 167
0 votes
2 answers
34 views

How to implement custom Javascript to my site

I have been given the following code to implement a siteskin onto our site. It's custom code but I can't work out how to implement the code into my theme (Newspaper) we have custom Javascript/Advert ...
Eddie Stubbington's user avatar
0 votes
1 answer
115 views

How to include a hyperlink in the body text of a custom password protected form?

I have customized and styled the password protected form that shows up for protected pages by adding code to the functions.php file of my theme. This all works fine, but I would like to add a ...
Emily's user avatar
  • 1

1 2
3
4 5
7