How to display only the posts of the current category at Recent posts widget?
I mean by that, for example, while I’m reading an post that categorized as “wordpress”, I want to see more post of same category at recent posts widget.
It is for the purpose of relevancy and user experience and also a little SEO consideration.
Appreciate your time,
Michael
I have installed the free version of PublishPress-Authors 3.16.0 on WordPress 5.9.2 with GeneratePress Premium 2.1.2.
After creating a guest author and publishing a post as such, another (regular) user is displayed as an author in the “Recent Posts Widget”. I have not assigned any regular user in the settings to the guest author.
Trying out the GeneratePress-Child theme you offer for the archive issue did not work. The cache has been flushed.
Everything except the widget seems to be working as expected.
Hope, you can help!
Thanks!
Bart
]]>I use the option “integrate events in the Blog Roll” and it works fine. I also use the “recent posts” widget. Of course the output of the widget does not include the events. How can i modify the widget to show the events also?
I would like to have the same list as on the Blog Roll. Example:
Blog Roll:
Post A
Event A
Post B
Post C
Event B
Recent Posts Widget:
Post A
Post B
Post C
Desired Output of the Widget:
Post A
Event A
Post B
Post C
Event B
I can’t imagine that I am the first one who wants this behaviour, but I did not find any answers to my question.
Thanks in advance
Maria
1) Plugin option “Can Archived Posts be read publicly” to “No – only logged in users can view archived posts”
2) Set a Post to “Archived”
3) Log off to WordPress
4) Return to site’s homepage
5) View “Recent Posts” widget in sidenav and verify Archived Post IS NOT listed
6) Click on any link from “Recent Posts” widget
7) View “Recent Posts” widget in sidenav and see that Archived Post IS listed
8) Click on Archived Post link from “Recent Posts” widget
9) Receive a 404 Page Not Found error
WordPress: v4.9.1
Theme: Twenty Seventeen
Archive Options: No – only logged in users can view archived posts
I tried using a general plugin like Specify Image Dimensions for that matter but it just makes my website freeze on page refreshing!!
I asked for the support but I got no answer and I’m just wondering if there is any way to define a width and height attribute to the plugin itself or maybe somewhere in function.php to fix the issue. here is the main php code and hope it’s enough :
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;
class RPW_Extended {
/**
* PHP5 constructor method.
*
* @since 0.1
*/
public function __construct() {
// Set the constants needed by the plugin.
add_action( 'plugins_loaded', array( &$this, 'constants' ), 1 );
// Internationalize the text strings used.
add_action( 'plugins_loaded', array( &$this, 'i18n' ), 2 );
// Load the functions files.
add_action( 'plugins_loaded', array( &$this, 'includes' ), 3 );
// Load the admin style.
add_action( 'admin_enqueue_scripts', array( &$this, 'admin_style' ) );
// Register widget.
add_action( 'widgets_init', array( &$this, 'register_widget' ) );
// Register new image size.
add_action( 'init', array( &$this, 'register_image_size' ) );
}
/**
* Defines constants used by the plugin.
*
* @since 0.1
*/
public function constants() {
// Set constant path to the plugin directory.
define( 'RPWE_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
// Set the constant path to the plugin directory URI.
define( 'RPWE_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );
// Set the constant path to the includes directory.
define( 'RPWE_INCLUDES', RPWE_DIR . trailingslashit( 'includes' ) );
// Set the constant path to the includes directory.
define( 'RPWE_CLASS', RPWE_DIR . trailingslashit( 'classes' ) );
// Set the constant path to the assets directory.
define( 'RPWE_ASSETS', RPWE_URI . trailingslashit( 'assets' ) );
}
/**
* Loads the translation files.
*
* @since 0.1
*/
public function i18n() {
load_plugin_textdomain( 'recent-posts-widget-extended', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}
/**
* Loads the initial files needed by the plugin.
*
* @since 0.1
*/
public function includes() {
require_once( RPWE_INCLUDES . 'resizer.php' );
require_once( RPWE_INCLUDES . 'functions.php' );
require_once( RPWE_INCLUDES . 'shortcode.php' );
require_once( RPWE_INCLUDES . 'helpers.php' );
}
/**
* Register custom style for the widget settings.
*
* @since 0.8
*/
public function admin_style() {
// Loads the widget style.
wp_enqueue_style( 'rpwe-admin-style', trailingslashit( RPWE_ASSETS ) . 'css/rpwe-admin.css', null, null );
}
/**
* Register the widget.
*
* @since 0.9.1
*/
public function register_widget() {
require_once( RPWE_CLASS . 'widget.php' );
register_widget( 'Recent_Posts_Widget_Extended' );
}
/**
* Register new image size.
*
* @since 0.9.4
*/
function register_image_size() {
add_image_size( 'rpwe-thumbnail', 45, 45, true );
}
}
new RPW_Extended;
]]>It is showing numbers rather than the title of the post. I don’t know where the numbers are originating, or how to eliminate them.
Please see: http://www.thewriteconcept.com
Thanks!
]]>How do I remove the little file icons next to the links under Recent Posts in my footer? > www.yukfun.co.uk
Also I just updated to the latest version of storefront and our logo has shrunk!
]]>