Syntax error, unexpected '-', expecting '(' in line 11
-
How to solve this problem I’m completely out of mind…? unable to find out the problem…
<?php /* Plugin Name: Next And Previous Posts Description: This plugin adds next and previous posts at the end of a post. Plugin URI: https://localhost.com Author: Muhammad Haroon Author URI: https://softstribe.com */ function nextandpre-posts-display($content) { if (is_single()) { $nextandpre = '<div class="previous"> .previous_post_link('<strong>%link</strong>'); </div>'; return $content . $nextandpre; } return $content; } function nextandpre-posts-style() { // this is where we'll style our box echo '<style type="text/css"> .previous { border: 1px solid #bbb; background: #eee; padding: 5px; } </style>'; } add_action('the_content', 'nextandpre-posts-display'); add_action('wp_head', 'nextandpre-posts-style');
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Syntax error, unexpected '-', expecting '(' in line 11’ is closed to new replies.