Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all 8245 articles
Browse latest View live

michaelmartinezcampos on "E-cards Embedding featured image in an email?"

0
0

I'm using a theme (Avada) that has a social sharing bar at the bottom of posts. The facebook sharing function grabs the featured image, but the email function just links to the post the image is embedded in. Is it possible to embed the featured image in an email? If so, how would I do it?


Lzhelenin on "Using WP_query() in function.php"

0
0

Hello guys, I got stuck with subj. I wrote a function that gets certain fields of posts (the 'advanced custom fields' plugin was used for the fields) with custom type 'opt', pushes it in an array, encodes it to json and updates .json file.

function opt_update() {
$args = array(
    'post_type' => 'opt'
);
$opt_array = array();
$the_query = new WP_Query($args);
while ($the_query -> have_posts()): $the_query -> the_post();
$good_type_array = array();
while (have_rows('type')): the_row();
$type_name = get_sub_field('type_name');
array_push($good_type_array, $type_name);
endwhile;
array_push($opt_array, array(
    'name' => get_the_title(),
    'good_type' => $good_type_array,
    'price' => get_field('price')
));
endwhile;
wp_reset_postdata();
file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/wp-content/themes/blablabla/json/data.json', raw_json_encode($opt_array));}

function raw_json_encode($input) {
    return preg_replace_callback(
        '/\\\\u([0-9a-zA-Z]{4})/',
        function ($matches) {
            return mb_convert_encoding(pack('H*',$matches[1]),'UTF-8','UTF-16');
        },
        json_encode($input)
    );
}

It works perfectly if I call the function, for example, on the main page:

opt_update();

But what I need is to execute the function when I publish/update the 'opt' custom post. I tried to use that hook:

add_action('publish_opt', 'opt_update', 10, 2);

... but it doesn't work at all. Although it's not a problem of the hook, if I put instead of 'opt_update' an another function, for example:

add_action('publish_opt', 'mail_me', 10, 2);

... it sends me an e-mail message as it is supposed to. Where am I wrong?

Phill on "Custom Registration Not Saving First and Last Name Values"

0
0

Hi,

I'm creating a custom registration form which works using username and email inputs, but when I include First and Last name fields it won't let me register.

Here is the form:

<form id="_wb_register" action="<?php echo home_url(); ?>" method="post">

		<p>

			<label for="_wb_register_username"><?php _e('Username:', 'wb'); ?></label>
			<input type="text" name="username" id="_wb_register_username" />

		</p>

		<p>

			<label for="_wb_register_user_first_name"><?php _e('First Name:', 'wb'); ?></label>
			<input type="text" name="user_first_name" id="_wb_register_user_first_name" value="<?php echo esc_attr( wp_unslash( $first_name ) ); ?>" />

		</p>

		<p>

			<label for="_wb_register_user_last_name"><?php _e('Last Name:', 'wb'); ?></label>
			<input type="text" name="user_last_name" id="_wb_register_user_last_name" value="<?php echo esc_attr( wp_unslash( $last_name ) ); ?>" />

		</p>

		<p>

			<label for="_wb_register_email"><?php _e('Email:', 'wb'); ?></label>
			<input type="email" name="email" id="_wb_register_email" />

		</p>

		<div class="padding" style="height: 5px;"></div>

		<?php do_action('wb_user_panel_registration_form_bottom'); ?>

		<p><input type="submit" value="<?php _e('Sign Up', 'wb'); ?>" class="button-primary" /></p>

	</form>

And here is the function used to create the user upon finishing the registration form:
add_action('wp_ajax__wb_register', '_wb_register_function');
add_action('wp_ajax_nopriv__wb_register', '_wb_register_function');

function _wb_register_function() {

$return = array();
$return['error'] = false;
$return['message'] = array();

//// VERIFIES NONCE
$nonce = isset($_POST['nonce']) ? trim($_POST['nonce']) : '';
if(!wp_verify_nonce($nonce, 'wb-register-nonce'))
die('Busted!');

//// VERIFIES CREDENTIALS
$username = isset($_POST['username']) ? trim($_POST['username']) : '';
$first_name = isset($fields['user_first_name']) ? sanitize_text_field(trim($fields['user_first_name'])) : '';
$last_name = isset($fields['user_last_name']) ? sanitize_text_field(trim($fields['user_last_name'])) : '';
$email = isset($_POST['email']) ? trim($_POST['email']) : '';

//// MAKES SURE USER HAS FILLED USERNAME AND EMAIL
if($email == '' || !is_email($email)) { $return['error'] = true; $return['message'] = __('Please type in a valid email address.', 'wb'); }
if($last_name == '') { $return['error'] = true; $return['message'] = __('Please enter your last name.', 'wb'); }
if($first_name == '') { $return['error'] = true; $return['message'] = __('Please enter your first name.', 'wb'); }
if($username == '') { $return['error'] = true; $return['message'] = __('Please choose an username.', 'wb'); }

///// IF USER HAS FILLED USER, PASS, FIRST AND LAST
if($return['error'] == false) {

$return_registration = _wb_process_user_registration($return, $email, $username, $first_name, $last_name);
$return = $return_registration;

}

echo json_encode($return);

exit;

}

//////////////////////////////////////////////////////////////////////
///// THIS FUNCTION PROCESSES REGISTRATIONS
//////////////////////////////////////////////////////////////////////

function _wb_process_user_registration($return, $email, $username, $first_name, $last_name) {

//// CHECKS IF USERNAME EXISTS
$user = new WP_User('', $username);
if(!$user->exists()) {

//// CHECK FOR USERNAMES EMAIL
$user = get_user_by('email', $email);
if(!$user) {

$password = wp_generate_password();

//// NOW WE CAN FINALLY REGISTER THE USER
$args = array(

'user_login' => esc_attr($username),
'first_name' => $first_name,
'last_name' => $last_name,
'user_email' => $email,
'user_pass' => $password,
'role' => 'submitter',

);

//// CREATES THE USER
$user = wp_insert_user($args);

$first_name = apply_filters('pre_user_first_name', $_POST['user_first_name']);
$last_name = apply_filters('pre_user_last_name', $_POST['user_last_name']);

update_user_meta($user, 'first_name', $first_name);
update_user_meta($user, 'last_name', $last_name);

if(!is_object($user)) {

//// MAKES SURE HE CAN"T SEE THE ADMIN BAR
update_user_meta($user, 'show_admin_bar_front', 'false');

$user = new WP_User($user);

When I submit the registration form it gives me the 'Please enter your first name.' error, so at least that part of the function is working. I don't understand why the First and Last names are not being registered when the Username and Email work just fine. Are there any tutorials you recommend I check out to find a solution?

cyberlp23 on "Email sent after post validation"

0
0

Hello,

Where can I customize the email automatically sent to an author after his post has been validated by a moderator?

Thanks.

rookdesigns on "Swithcing content"

0
0

Hello there

I am making a website which will have summer and winter content, on each page. I am looking for advice on the best way of doing this?

I have been thinking of having multiple contents for each page, one titled winter and one titled summer, then the editor would add the appropriate content in each section.

On the front end, there would a be two buttons, one title summer and one winter, when the relevant button was clicked the relevant content would be displayed, any ideas on the best way of doing this?

Any help very much appreciated

Best

Harry

jaBote on "Custom "This content is password protected" text, different for each post"

0
0

Hello again.

After some time being unable to find a plugin that suits my needs over here, I've decided to try coding my own plugin for that purpose, being totally new to WordPress and knowing just basic SQL and PHP. I honestly doubt this would even need a SQL modification, though.

The idea (to make it clearer than before) is showing the part of the post before the read more tag, then prompt for a password that would lead to the full post contents.

After some looking, I've found myself lost trying to look for the correct functions that handle the posts on wp-includes/post-template.php. Could you please indicate me the functions that are more of interest so that I can work my way up to that? Could it be way too difficult for my current knowledge?

I'd want to make it a plugin (I think there's more than enough information on the Codex regarding this) and contribute it to the plugins directory WordPress has, in case someone else would want it and I'm able to commit it.

Thank you all in advance.

Regards,
jaBote

marc5000 on "Custom Sidebar Menu - Category Taxonomy"

0
0

Hi - I have a custom Wordpress Taxonomy called 'directory-category' with posts sitting in each relevant category within the taxonomy.

I'm using the Avada template with a hope to use their sidebar mechanism, however I'm unable to modify (successfully) this code to not list page ancestors, but rather, listing categories within the taxonomy and then the posts within the categories.

Here is the current sidebar helper function building a sidebar menu based on pages / page ancestors;

$html = '<ul class="side-nav">';

$post_ancestors = get_ancestors( $post_id, 'page' );
$post_parent = end( $post_ancestors );

$html .= '<li';
if( is_page( $post_parent ) ) {
$html .= ' class="current_page_item"';
}

if( $post_parent ) {
$html .= sprintf( '>%s', get_permalink( $post_parent ), __( 'Back to Parent Page', 'Avada' ), get_the_title( $post_parent ) );
} else {
$html .= sprintf( '>%s', get_permalink( $post_id ), __( 'Back to Parent Page', 'Avada' ), get_the_title( $post_id ) );
}

if( $post_parent ) {
$children = wp_list_pages( sprintf( 'title_li=&child_of=%s&echo=0', $post_parent ) );
} else {
$children = wp_list_pages( sprintf( 'title_li=&child_of=%s&echo=0', $post_id ) );
}
if ( $children ) {
$html .= $children;
}

$html .= '';

return $html;

I really would appreciate the help if someone is able to assist!

Lluis on "Polylang duplicate post and media translation"

0
0

I've seen several threads in the support forum asking how to duplicate a post into a different language using the Polylang plugin instead of having to start the translation of an existing page or post from scratch.
I myself ran into this issue and decided to improve the Polylang plugin as follows.
Image translation:
If you are building a multi language site then you also want your images to be translated; that is having the "alt attribute" or alternate text for the image translated for each language of your site. The first step is thus to translate the images.
Go to WordPress Setings->Languages then the "Settings" tab and
make sure the Media checkbox is checked to "Activate languages and translations for media" in Polylang.
Then translate your images in the media library by clicking in the "+" icon that polylang displays. Make sure you translate the "Alternative Text" before clicking the "Update" button.
Note that since Polylang version 1.7 the alt text gets copied from the original language.
Once your images are translated you can then proceed to "Add new translations" duplicating the post or page using the standard "+" icon on your pages/post. But first read the next section...

Polylang code changes:
Line numbers are for version 1.7.3 (but I had this code running on Polylang version 1.6)
Edit wp-content\plugins\polylang\admin\admin-sync.php
Insert the 4 new lines shown below in function add_meta_boxes:

Line 57:	$from_post = get_post($from_post_id);
		$post->post_title = $from_post->post_title . ' Copy_' . $_GET['new_lang'];  // NEW appends Copy_Language to original Post Title
		$post->post_content = $from_post->post_content;                             // NEW copy the content of the original post into the new translated post
		if ($this->options['media_support'])                                        // NEW Check if images are to be translated (as set in polylang "Settings" tab)
		    $this->translate_images_in_duplicated_post($post,$_GET['new_lang']);    // NEW do the magic to update the images
Line 58:  	foreach (array('menu_order', 'comment_status', 'ping_status') as $property)

Then insert the function that does the translation of image alt attributes:
public function translate_images_in_duplicated_post(...)
somewhere in this same file like right after the function add_meta_boxes you just modified.
This function parses the post_content string looking for images, extracts the ID of the image, gets the newID of the translated image (calling polylang get_translation) and then replaces the image alt="alt text in original language" with the alt="alt text in the translated language".

public function translate_images_in_duplicated_post($post, $to_lang) {
		$content = $post->post_content;
		$imgend = 0;
		$translated_content = '';
		$imgstart = strpos($content,'<img',$imgend);
		while ($imgstart !== false) {
			$translated_content .= substr($content,$imgend,$imgstart-$imgend);     // Keep string up to imgstart
			$index = strpos($content,'wp-image-',$imgstart);           // Search from <img
			$imgend = strpos($content,'/>',$imgstart);                 // Search from <img
			$imgend += 2;                                              // Advance />
			$image_id = 0;
			if (sscanf(substr($content,$index,$imgend-$index),"wp-image-%d",$image_id) == 1) {
				$translated_image_id = $this->model->get_translation('post', $image_id, $to_lang);
				if(!$translated_image_id) {
					echo "No translation to $to_lang exists for image $image_id";
					$translated_content .= substr($content,$imgstart,$imgend-$imgstart);        // Keep original image
				} else {
					$translated_content .= substr($content,$imgstart,$index-$imgstart);         // Keep up to wp-image
					$old_imageId = sprintf("wp-image-%d",$image_id);
					$new_imageId = sprintf("wp-image-%d",$translated_image_id);
					$translated_content .= $new_imageId;
					$imgstart = $index + strlen($old_imageId);  // Skip wp-image-oldId
					// Update the parent of the translated image if it has none
					$image_post = get_post($translated_image_id);
					if ($image_post->post_parent === 0) {
						$translated_image_post = array('ID'=> $translated_image_id, 'post_parent' => $post->ID);
						wp_update_post($translated_image_post);
					}

					$index = strpos($content,'alt="',$imgstart);
					if ($index !== false) {  // Found alt text replace with new image if available
						$index += 5;         // Skip alt="
						$new_image_alt = get_post_meta($translated_image_id, '_wp_attachment_image_alt', true);
						if (is_string($new_image_alt) AND $new_image_alt != '') {
							$translated_content .= substr($content,$imgstart,$index-$imgstart); // Keep up to including alt="
							$translated_content .= $new_image_alt;
							$imgstart = strpos($content,'"',$index); // find the closing " in the original alt
						}
					}
					$translated_content .= substr($content,$imgstart,$imgend-$imgstart);         // Keep the rest of img
				}
			} else {
				$translated_content .= substr($content,$imgstart,$imgend-$imgstart);        // Keep original image
			}
			$imgstart = strpos($content,'<img',$imgend);   // look for another image
		}
		$translated_content .= substr($content,$imgend,strlen($content)-$imgend);
		$post->post_content = $translated_content;
	}

If the post has images that are not yet translated, this function will display the ID's (using a simple echo message not fancy at all...) to give you a chance to go back, translate the media and then duplicate the post again.

We are using this to translate this site: fibracreativa.com from French into English and Spanish.

Hope someone finds it useful.
Chouby, maybe this can be incorporated in the next version of the plugin.
Enjoy!


cccciao on "Can editing functions.php of a child theme do everything?"

0
0

Hej all,

In order to modify a theme, can I achieve it only by editing the functions.php of a child theme? I know that it's recommended to use the functions.php of a child theme so that the theme will be updated and everything will be ok. So I wonder if there are some situations that you can't do only with the functions.php of a child theme but have to modify php files of the mother theme itself.

I searched for this question a lot. But I couldn't find any relevant answer.

Thanks.

spikespiegel on "Child plugins?"

0
0

I know this was discussed before, but everything I've read is so confusing.

Isn't there a simple way to create a plugin override like it's done with a child theme?

Let's say I have b.php file in the plugin's folder, so in plugin's child folder I'll have the b.php too. I'm reading about plugin hooks, but I'm getting more confused tha clarified.

lebron.d on "Many Images on web and media library don't appear"

0
0

I don't know if hack came from any of the plugins including JetPack, whereas the folder seemed to be updated before few days. Anyway I've tried the following:
- Removed all cache folders and plugins
- Disabled all plugins
- Upgraded WordPress to latest version
- Re-added WordPress files again
- Activated and tried all themes including default re-uploaded themes.
I don't know why, but some of images are showing and some are not under both blog and media. Here is the example: http://imgur.com/QpBGG92
I don't think the issue is related to folders, as images showing in 2nd row are in same folder as the first few broken images. (uploads/2015/04/). No to mention that direct link to any image works fine.
Concerning folder permissions and images permissions, they are 755 and 644.

What should I do? Even fresh install never helped.
Is it related to .htaccess?

OfficialKHAN on "Limiting Posts And Pagination"

0
0

Hi,

I have a homepage which displays all my posts. I'd like to limit this to 5 posts and i also want to include pagination so they can click next and it will load the next 5 on refresh or whatever.

This is what i have so far.

<?php $limitPosts = new WP_Query('posts_per_page=3'); ?>

It successfully limits my posts, but again i need a way to load the next 3.

How can i do this?

aghezzi on "plugin add page without menu item"

0
0

in my plugin I have added a page with add_menu_page
now I need another page without adding another menu item
is it possible and how ?

Jay on "Error when switching between visual and text editor"

0
0

Hello,

When switching between visual and text editor the data that is typed is not being transferring between the two editors. It has been happening for a while(10 months), but I have been using the plugin CKEditor for WordPress, which does not reproduce any errors.

Below are the errors I receive when switching between the two editors with the CKEditor plugin disabled.

<u>ERROR 1</u>
TypeError: i.toLowerCase is not a function
...a.isValidChild(r.nodeName.toLowerCase(),i.toLowerCase())?(e=O&&11>O?"":'<br data...

within: wp-includes/js/tinymce/tinymce.min.js?ver=4109-20150406 (line 12, col 21441)

<u>ERROR 2</u>
TypeError: I.toLowerCase is not a function

...firstChild,n,i;if(l.isValidChild(y.name,I.toLowerCase())){for(;t;)n=t.next,3==t....

within: wp-includes/js/tinymce/tinymce.min.js?ver=4109-20150406 (line 6, col 30555)

outtacontext on "Shortcode Question about using a Plugin"

0
0

I am using a plugin that brings images from my flickr account into my WP site in a masonry-like format. Specifically, I want to bring in just my images from a particular set. That's easy with this plugin with this shortcode:

[flickr_set id="72157626926458136"]

The instructions that come with the plugin (Flickr Justified Gallery) show that it's also able to either bring in or exclude images with particular tags. The shortcode listed for that is:

[flickr_tags user_id="67681714@N03" tags="cat, square, nikon"]

The instructions say you can exclude any images with a particular tag by placing a "-" before the tag (i.e. -landscape).

What I want to do is to import images from a particular set but exclude all images that have a particular tag within the set (not my whole photostream).

Using both shortcodes doesn't work. Because the flickr_tag syntax uses user id, when I use both, it will first display all the images in my set, then it will display underneath all the images in my whole photostream except the images tagged with "landscape."

My question: is there a way to exclude the images tagged "landscape" just from my set and not my whole photostream?

I've played around with the code for the plugin itself but to no avail. Here's the code that I think is responsible for the returns. And I don't know enough to be able to rewrite this to do what I want it to do. Is it possible? Here's the code I think is the area I need to work on:

//[flickr_photostream user_id="..." ...]
function fjgwpp_flickr_photostream($atts, $content = null) {
	return fjgwpp_createGallery('phs', $atts);
}
add_shortcode('flickr_photostream', 'fjgwpp_flickr_photostream');
add_shortcode('flickrps', 'fjgwpp_flickr_photostream'); //legacy tag

//[flickr_set id="..." ...]
function fjgwpp_flickr_set($atts, $content = null) {
	return fjgwpp_createGallery('set', $atts);
}
add_shortcode('flickr_set', 'fjgwpp_flickr_set');

//[flickr_gallery user_id="..." id="..." ...]
function fjgwpp_flickr_gallery($atts, $content = null) {
	return fjgwpp_createGallery('gal', $atts);
}
add_shortcode('flickr_gallery', 'fjgwpp_flickr_gallery');

//[flickr_tags user_id="..." tags="..." tags_mode="any/all" ...]
function fjgwpp_flickr_tags($atts, $content = null) {
	return fjgwpp_createGallery('tag', $atts);
}
add_shortcode('flickr_tags', 'fjgwpp_flickr_tags');

//[flickr_group id="..."]
function fjgwpp_flickr_group($atts, $content = null) {
	return fjgwpp_createGallery('grp', $atts);
}
add_shortcode('flickr_group', 'fjgwpp_flickr_group');

//Options
include("flickr-justified-gallery-settings.php");

?>

I am not a coder but I can understand the variables and the syntax of code fairly well. If I need to show you the entire code for this plugin, let me know. Thanks for your help.


lagoongear on "if increase the WP ram usage, can I click auto update without reset changes?"

0
0

Hi Guys,

I wonder, if I change the PHP wordpress coding to increase to ram to like 512MB.

If I click auto update, will it reset?

Or it depends the version update changes?

schoe on "Trying to expand the new 4.2 Press This"

0
0

Now the "completely revamped" (class) Press This provides "improved handling of the data" and responsive design regarding mobile devices... Well done as allways, I suppose!

But what about flexibility?
Regarding e.g. copyright issues, I used to have some Custom Fields:
Copyright licence but also Homepage, Sitename, Language...
OK, I can easily add these fields with the new 'admin_footer' action hook and then I might save the additional data using the new 'press_this_data' filter? I do hope that this will work...

But what about the other achievements of the (old) editor:
The postbox-container with the - sortable and togglable - meta-boxes:
Publish, Categories, Tags, Featured Image, Format for immediate access to all the Meta...

Now the Meta became modal:

  • There is no Featured Image any more!
  • There is no hook for additional Custom Fields!
  • There is no simultaneous view to provide easy selection!

Is there any chance to integrate theese achievements in the new 4.2 Press This?
Or do I really have to keep the old 'press-this.php'?

n1kki6 on "Adding post ID to URL without using the permalink settings"

0
0

So I have a bit of a weird request I am trying to figure out. I have a template installed that I love. But it uses custom post types and taxonomy for the areas I use most. Unfortunatly these area's only allow for url.com/taxonomy/postname or url.com/postname.

Is their a way I can hack the core to build the correct permalink, and then set my URL correctly in the permalink settings.

For example in this template, I can disable the taxonomy title in the URL, but I still need to go and set the permalinks to use postname to work. Can I somehow just force the permalink in the code, as this template seems to be doing and then refresh my permalink setting? I have found some permalink code in post.php and one of the template files, but I am not sure what my options are. I could just concatenate a post id to the slug, but that seems a bit wonky to me.

Lsnewton on "Repeating a function from another plugin."

0
0

I have a WooCommerce/Gravity Form plugin that uses the following line to add an options metabox to the editor page of a WooCommerce product:

add_meta_box( 'woocommerce-gravityforms-meta', __( 'Gravity Forms Product Add-Ons', 'wc_gf_addons' ), array($this, 'new_meta_box'), 'products', 'normal', 'default' );

I've added other custom post types that are now recognised as products by WooCommerce, and I'd like that metabox to be displayed for them as well. I can achieve this if I edit the plugin and duplicate that line, swapping the 'products' value for the name of the custom post type (E.g. 'Speakers):

add_meta_box( 'woocommerce-gravityforms-meta', __( 'Gravity Forms Product Add-Ons', 'wc_gf_addons' ), array($this, 'new_meta_box'), 'speakers', 'normal', 'default' );

This, however, would obviously break as soon as the plugin updated, so I'd like to write a new plugin that just extends it to add that metabox onto the new post types.

How could I go about doing that? I've tried to just use that new line in the plugin and call the original plugin with require_once, but that doesn't seem to have any effect.

ulvdal on "Alter header image default size in Child theme functions.php"

0
0

Hi

I'm trying to lter header image default size in my Child theme by altering the functions.php on my site http://hastochvila1.ulvdal.se/. I tried to follow the suggestion on:
http://venutip.com/content/right-way-override-theme-functions, but i can't get it to work.

My functions.php in the child theme folder looks like this:

<?php
add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
function enqueue_parent_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}
// Removes Theme setup
function remove_thematic_actions() {
    remove_action( 'after_setup_theme', 'hemingway_setup' );
}
// Call 'remove_thematic_actions' during WP initialization
add_action('init','remove_thematic_actions');

// Add our custom function
add_action( 'after_setup_theme', 'hastochvila_setup' );

function hastochvila_setup() {

	// Automatic feed
	add_theme_support( 'automatic-feed-links' );

	// Custom background
	add_theme_support( 'custom-background' );

	// Post thumbnails
	add_theme_support( 'post-thumbnails' );
	add_image_size( 'post-image', 676, 9999 );

	// Post formats
	add_theme_support( 'post-formats', array( 'video', 'aside', 'quote' ) );

	// Custom header
	$args = array(
		'width'         => 1899,
		'height'        => 400,
		'default-image' => get_template_directory_uri() . '/images/header.jpg',
		'uploads'       => true,
		'header-text'  	=> false

	);
	add_theme_support( 'custom-header', $args );

	// Add nav menu
	register_nav_menu( 'primary', 'Primary Menu' );

	// Make the theme translation ready
	load_theme_textdomain('hast-och-vila', get_template_directory() . '/languages');

	$locale = get_locale();
	$locale_file = get_template_directory() . "/languages/$locale.php";
	if ( is_readable($locale_file) )
	  require_once($locale_file);
}

And i get this message when trying to load the site:
Parse error: syntax error, unexpected $end in /storage/content/98/176198/ulvdal.se/public_html/wp-content/themes/hastochvila/functions.php on line 53

I'm really not an expert on PHP nor Wordpress. So I could need som help. Thanks!

Viewing all 8245 articles
Browse latest View live




Latest Images