The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
6 views

How to use wordpress (php) functions in angularjs partials files?

I am using angularjs to load a list of my wordpress posts, however I can not get any of my php functions to work with my partials file. I've tried using something such as search.php instead of ...
0
votes
1answer
44 views

Parse error: syntax error, unexpected end of file in functions.php on line 487 [closed]

After seeking a solution about thumbnail size, I found in wordpress codex some codes and when i add them in editor in function php my blog stopped working. It is a blank page with this error message : ...
-1
votes
1answer
27 views

How to parse wordpress options json

I have the data saved using a plugin in this format: a:7:{s:6:'Sunday ';a:3:{s:6:'active ';s:3:'yes ';s:5:'start ';s:5:'08: 00 ';s:3:'end ';s:5:'13: 00 ';} s:6:'Monday ';a:3:{s:6:'active ...
0
votes
1answer
14 views

How woo-commerce store Product Data value in DB?

I am working on a project in which Products are being added by parsing a XML file. For Variant product I am able to save all attributes and the product variant related to a product , but I am unable ...
3
votes
1answer
52 views

Correct regex for wp_embed_register_handler

THE GOAL I'm trying to parse a url and convert it to an embedded video player in my post's content but I think my regEx is off or I'm not creating a provider correctly. THE CODE Here is what I have ...
-1
votes
1answer
31 views

Parse error: syntax error, unexpected T_FUNCTION

I just moved my site from one server to another, both on bluehost But i am getting this error Parse error: syntax error, unexpected T_FUNCTION in ...
0
votes
1answer
31 views

Custom Post Type Field Array parsing [closed]

I have a CPT Field named 'course_location' as a checkbox with values. When I use $field = get_field_object('course_location'); '<pre>searchDateArray'; print_r($field); echo '</pre>'; ...
0
votes
0answers
44 views

What method does this eventually call: do_action_ref_array( 'parse_query', array( &$this ) );

I'm looking at this line of code at the end of public function parse_query in query.php: do_action_ref_array( 'parse_query', array( &$this ) ); Does this simply end up calling the parse_query ...
0
votes
1answer
24 views

getting a blank login page :( any way I can fix this without having to do a clean install?

here's the site: www.evolvtec.golocalexpert.com Parse error: syntax error, unexpected '}' in /home2/inbrazil/public_html/evolvtec/wp-content/themes/Divi/epanel/custom_functions.php on line 1264 ...
0
votes
0answers
16 views

WordPress allowed and not allowed params in GET form

I'm developing a custom function in the admin area under the user section. I have added options to the section so I'm supposed to be able to change permission for the user like the attached image ...
0
votes
1answer
319 views

Upgrading to 4.1 fixed parse error

In the past few days I've had reports that users weren't able to access my site. They were just getting a blank page. I checked the error_log and found this. [22-Nov-2014 22:07:41 UTC] PHP Parse ...
0
votes
1answer
41 views

Worpress url parse

I want to display posts in certain category only with given tag. Problem with parsing url slugs. For example, I have category named 'Clothes': example.com/clothes/ I can get posts in this category ...
0
votes
0answers
26 views

Parse Error when trying to access Products -> Categories

Whenever I try to access the Categories or Tags tab under Products on the WP dashboard, I get this error message: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in ...
0
votes
2answers
260 views

post__in - Placing content from a foreach loop inside of an array

I know this code is incorrect, but it's a basis of what I am trying to achieve. I am parsing an xml feed via PHP and running a foreach loop to get a value from a specific key. Here is the snippet I ...
-1
votes
1answer
473 views

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' [closed]

I am trying to use following codes to have an email share button in a WordPress website. But adding this codes in single.php shows "Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' ...
0
votes
0answers
98 views

syntax error unexpected '}' at 364 line

I am getting this error on my website and am not able to access admin dashboard. The error occurs when I am a new theme on my website. Can you please help me to find this error. Parse error: ...
0
votes
1answer
330 views

Does Wordpress has an automatic link parse function?

Does wordpress has an automatic link parse function? I want the HTML to be generated automatically when writing www.url.com -> <a href="www.url.com">www.url.com</a>
0
votes
1answer
83 views

How to import individual blog posts into Wordpress?

I'm trying to move some content from another website into blog posts for work, and I need a little bit of help. Basically my task is to parse a bunch of files into their content, put them into a ...
1
vote
1answer
815 views

Get parse_query filter to return slug instead of id

After much headache in the last week I feel like my problem is almost solved. I have been attempting to customize the admin edit.php page of custom post types to display and sort/filter custom ...
0
votes
1answer
40 views

Function code problem

I changed my taxonomy slug from singular to plural ("state" to states"). Ever since then my taxonomy has been broken. It used to say OTHER instead of the state name. Now my urls look like this ...
0
votes
3answers
13k views

Printing out JSON array returned [closed]

I have the following JSON array: [{"occurences":"1","post_title":"Test 1","ID":"16"}, {"occurences":"1","post_title":"Test 2","ID":"19"}, ...
1
vote
2answers
797 views

Get closest page ID from URL

Lets say on my WordPress website I navigate to: www.example.com/media-centre/news/17/an-example-news-post In this case I am looking at a post in a CPT called News. What I want to do is get the ...
0
votes
1answer
642 views

Problems with functions.php! Error! [closed]

Suddenly I got the message: Parse error: syntax error, unexpected T_CLASS in /home/spandabe/public_html/wp-content/themes/modularity-lite/functions.php on line 72 when opening my site ...
-1
votes
1answer
454 views

How to handle PHP parse errors?

I tried to execute the following code and I got a parsing error message (line:3). Here is the code on Pastebin http://pastebin.com/gC7rsJqw. I tried echoing but didn't seem to solve the problem. ...
0
votes
2answers
247 views

How to make modifications only to certain elements of an HTML string on the server-side?

Is there a similar way to select / perform DOM manipulation on the server-side (PHP) like the way jQuery works? For example, if I wanted to modify content of each <pre ...