A function is a sequence of program instructions that perform a specific task. It is packaged as a unit that can be used wherever the according task should be performed.
0
votes
0answers
7 views
Registration Fail Redirect Problem
We use two registration links allowing users to register for different roles:
/wp-login.php?action=register&utype=subscriber
/wp-login.php?action=register&utype=contributer
The subscriber ...
0
votes
1answer
28 views
Why does modifying my functions.php file always result in a server error
Basically, every time I modify my functions.php file and reload it to the server my site "breaks" and nothing loads. As soon as I delete it, it starts working again. Now before anyone freaks out, I ...
1
vote
1answer
15 views
Setting Up Scheduled Tasks (For Scripts to Run)
I am going to make a script that requires a scheduled run time. What is the best way to do this in Wordpress? Or maybe this can be done through some PHP method? I'm having a hard time finding even a ...
0
votes
1answer
40 views
Post visibility option to theme front-end for author to select?
Is it possible to present author with an option to select visibility of a post (public, private, password) on theme front-end post adding without messing with Wordpress core?
Any suggestions are ...
-1
votes
0answers
15 views
Override a plugin function that doesn't use actions
I'm trying to override a default function called '*fancy_notification_content*' which is declared in the WP E-commerce plugin. I want to achieve this by writing a new amended version of the function ...
0
votes
2answers
32 views
Wp admin - Set default value to 999 in comments
When you are at the comments menu in wp-admin you only see 20 comments at the time, so if you want to delete alla comments you can ONLY mark the 20 comments you see on current page. It dosent mark ...
3
votes
1answer
36 views
Different wp_mail_from and wp_mail_from_name for specific situations
I'm wondering how to create differents wp_mail_from and wp_mail_from_name for specific actions that use the built-in mail system in Wordpress.
For example, when a new comment comes, notify the user ...
0
votes
2answers
46 views
Adding code to the function file
I would like to move my large php functions out of the index or template files and into the function.php file. Would it be something like this?
function grab_code(???) {
??? .= '<div>some ...
1
vote
1answer
16 views
comments_number display outside specified span
I want to display the number of comments a particular post has, so i thought i'd use comments_number, however when i use this the comment number gets printed outside of the span it's supposed to be ...
0
votes
1answer
30 views
Conditional Content Display
I"m trying to replace the string "Something Nice will show up here" in the block of codes below with WordPress loop but it doesn't seem to be working. I'd like when Link1 is clicked on, let the post ...
0
votes
1answer
18 views
problem with has_post_thumpnail in foreach loop
I have a code that display the post if has_post_thumpnail the problem is it shows all the posts wheather it has thumpnail or not
<?php
global $post;
$args = array( 'numberposts' => 5 );
...
0
votes
0answers
13 views
PHP Parse error - wordpress [closed]
can anyone please assist me?
I have this error on my website (wordpress) when trying to load it. I was in functions php doing some coding. Then I deleted the coding I placed in there, but the error ...
0
votes
1answer
16 views
Archive.php, and post_is_in_descendant_category
I've got a small issue with my archive.php. I was trying to set up an If statement that displays a certain category and sub categories with a different layout & sidebar based on my theme options. ...
3
votes
1answer
49 views
function_exists call in function.php
In the function.php file of the twentyeleven the setup function checks to see whether it exists before running it:
if (!function_exists('twentyelevent_setup')):
function twentyelevent_setup() {
... ...
0
votes
1answer
47 views
WooCommerce Tabs
In my theme, I have the WooCommerce plugin installed and would like to rename the "Catalog" tab, located under the WooCommerce > Settings submenu page.
Am I able to do this from my functions.php ...