Tagged Questions
0
votes
1answer
38 views
get a simple array of all of the term names that exist in all taxonomies
I may be going about this all wrong but I'm trying to use get terms to get all of the terms that exist in every taxonomy.
I think this might be a php question.
get_terms allows you to specify which ...
1
vote
2answers
183 views
Defining a global array in functions.php?
I try to create an array of years, which is avaible in my template-files and in at least one other function in the functions.php.
function get_the_years()
{
global $year_arr = range(2001, ...
2
votes
1answer
157 views
WP doesn't show Array Custom Fields?
I'm wondering why WordPress doesn't list PHP array() and any serialized data in Custom Fields in Admin Panel (for Pages, Posts etc.)? Only Custom Fields containing strings and numbers show up and can ...
0
votes
1answer
67 views
Showing all post from all post type in admin backstage
I try to create an admin page where to display all posts from all custom post type. It is something like in edit.php, but instead of displaying single post type,I would like to display all posts in ...
0
votes
1answer
90 views
How to use array in function to get only value I want
I am trying to work this function in wordpress theme the way where I can get value only what I want and not all to gather. I am not much familiar with using array in function so I need you expert help ...
0
votes
1answer
51 views
output comment_author in array
In functions.php for part of custom comments, I have the following echoed array as the link to respond to a previous comment:
<?php echo comment_reply_link(array(
"before" => " <span ...
1
vote
1answer
162 views
Simple custom theme option not being saved
I'm not a web developer and have been following a tutorial on how to add options to a simple self-written theme.
In functions.php I've added the following code:
<?php
$themename = "Theme Name";
...
0
votes
2answers
376 views
Echo custom field value in shortcode function
I must be doing something wrong here. I want to display the custom fields "pw_featured_note" & "pw_featured_price"
Here is my code so far
function featured() {
...
0
votes
2answers
126 views
Alter required message using comment form api
I prefer not to use asterisk markers on required fields in the comment form.
So I'd like to remove or alter the 'required fields are marked (*)' message.
Being a good wordpress user, I'd like to do ...
2
votes
1answer
561 views
If function exists, and array is met, echo function?
I have a function like the following:
<?php echo my_custom_function( array( 'category_url'=>'My Special Category' ) ); ?>
It pulls data from the "My Special Category" and displays it. I ...
0
votes
1answer
265 views
Custom functions for string data calculations
Just a quick question. I have a form that calculates values based on user entry. The information is then passed via ajax to a php file for calculation returning the results. The problem is that that ...