Please help to know why single.php crashes after I add this code [closed]

You’re missing <?php and ?> <?php if( in_category( ‘movies’ ) ) { // this (end php, start html) -> ?> <span style=”font-size:16px”> <strong>Movie:</strong> <?php the_field( ‘movie_name’ ); ?> (<?php the_field( ‘movie_year’ ); ?>)<br/> <strong>IMDb:</strong> <?php the_field( ‘imdb_link’ ); ?><br/> <strong>Rotten Tomatoes: <?php the_field( ‘rt_link’ ); ?> <br/><br/> </span> <br/><br/> <?php // <- this (end html, … Read more

Unable to access my plugins [closed]

add this line to your wp-config.php file: define(‘WP_MEMORY_LIMIT’, ’64M’); OR If you have access to your PHP.ini file, change the line in PHP.ini If your line shows 32M try 64M: memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)

ACF select box css color change

You will need to store the field value in a variable and use the get_field() instead of the_field() function. From there you can introduce your own custom control structure to set the color you want. Here is a snippet <?php //store the value in a variable first $option = get_field(“status”); if($option==”K dispozicii”){ ?> <p style=”color:green”>$option</p> … Read more

Can anyone help me with replace genesis post excerpt with yoast meta description and if there is no meta description show the excerpt?

Remove: add_filter( ‘get_the_excerpt’, ‘replace_post_excerpt_filter’ ); function replace_post_excerpt_filter($output) { return $output; } from your code, and you should find it works. The trouble with nested functions, as you have here, is that once the parent function is called the first time, it defines the inner function, but when the parent function is called the second time … Read more

How can I add custom sidebar to my theme? [closed]

You need to register the widget area in your themes functions.php file. Your code should look something like this. //register the widget area function your_function_name() { register_sidebar(array( ‘name’ => esc_html__(‘Sidebar’, ‘your_theme_name’), ‘id’ => ‘sidebar-1’, ‘description’ => esc_html__(‘Add widgets here.’, ‘your_theme_name’), ‘before_widget’ => ‘<section id=”%1$s” class=”widget %2$s”>’, ‘after_widget’ => ‘</section>’, ‘before_title’ => ‘<h2 class=”widget-title”>’, ‘after_title’ => … Read more