Hi support,
I want the plugin show in graphql please suggest how can i do to show in the graphql wordpress
thanks and regards
mohit thakur
]]>Deprecated: Creation of dynamic property NS_Featured_Posts_Admin::$plugin_slug is deprecated in?/wp-content/plugins/ns-featured-posts/includes/classes/class-ns-featured-posts-admin.php?
]]>For the role Editor, in the list of posts, pages (and other contents activated for ns-featured-post), the column “featured”…
Why? Because admin.css and admin.js are not loaded in the admin page.
The issue is solved when, in class-ns-featured-posts-admin.php, I remove this lines :
if ( ! current_user_can( 'unfiltered_html' ) ) {
return;
}
]]>
Hi!
Getting this in latest version:
Deprecated: Required parameter $object follows optional parameter $args in xyz/wp-content/plugins/ns-featured-posts/vendor/ernilambar/optioner/src/Optioner.php on line 1328 Warning: Cannot modify header information – headers already sent by (output started at xyz/wp-content/plugins/ns-featured-posts/vendor/ernilambar/optioner/src/Optioner.php:1328) in xyz/wp-admin/includes/misc.php on line 1416
]]>Hello, please i need your help updating the featured status with a button on the frontend.
Here is my try;
// Mark Featured Button
<form action="/ngodirectory/dashboard" method="POST" name="front_end_featured" class="ogdform"><input id="fbtn" type="hidden" name="fbtn" value="'.$post->ID.'" />
<input id="FEATURED_BTN" type="hidden" name="FEATURED_BTN" value="FEATURED_BTN" />
<button class="directorist-btn directorist-btn-primary" id="featured" type="submit" name="submit" value="Promote"><i class="%s-ad"></i> Mark Featured </button></form>
function mywpupdate_post_meta($post_id,$key){
$thispost = get_post( $post_id, 'ARRAY_A' );
$thispost['_is_ns_featured_post'] = $key;
wp_update_post_meta($thispost);
}
if (isset($_POST['FEATURED_BTN']) && $_POST['FEATURED_BTN'] == 'FEATURED_BTN'){
if (isset($_POST['fbtn']) && !empty($_POST['fbtn'])){
mywpupdate_post_meta((int)$_POST['fbtn'],'yes');}}
]]>
I have a website with multiple languages with the plugin wpml. In my case i need to change the args for the query on your functions: “get_total_featured_count” and “get_other_posts”.
Because, when i change the featured post, in a language, i just want to count the featured on that language and also unselect the other posts, on that language to. For that i need to add to the query args:
'suppress_filters' => false,
It would be awesome if you could add a filter to change the args if needed on, at least, those 2 functions.
]]>Hi, it would be nice if you could add an action when a featured is updated.
In my case, i use for a content inside a popup in the homepage and i need to trigger the clear cache for that page when the featured changes.
It worked adding in the file /includes/classes/class-ns-featured-posts-admin.php L:382:
do_action('ns_featured_post_changed', $post_id);
just before the:
wp_send_json( $output );
Hi the widget has and make ul li gab please remove it because cant style margin after all lists
its not need
<a href="<?php the_permalink(); ?>"><?php get_the_title() ? the_title() : the_ID(); ?></a>
Thank you
]]>I am sorry to bother you. I looked on the forum and did not see this scenario addressed. I apologize if I missed it. I have a quick question regarding your NS Featured Post plugin. I appreciate the fact that the plugin supports both post and custom post types. I am currently using the plugin to display two lists on the front page of a website: each list is associated with one post type. Is there a way to use one list to display both (or multiple) post types together in one? I don’t see a way to do this in the widget, and I wondered about its possibility by adding php to the child theme. Any help that you can provide is appreciated.
]]>I updated wordpress and this plugin today and this feature is no longer working. Its still active in my plugins, I can edit the settings and select pages I want featured. But on the actual page nothing is showing up. What has changed that it no longer works?
]]>hi i have created a custom blog page using Blog Designer – Post and Widget i want to show featured blog post using your plugin can you help me how it can be done ?
]]>Hy there,
can you help, I installed your plugin NS Featured Posts to show featured posts, but with this code https://gist.github.com/ernilambar/ad31b89b459e954fc950 i get listed all featured posts, but how can i show featured per post category?
Tnx for your suggestion of code.
Best regards,
Karnel
Hi, is there a way to show all the posts but show the featured posts first without duplicating them further down?
]]>Hi,
Thank you for sharing your work.
I was wondering if it would be useful to have an option to use radio button instead of checkbox, to allow a single post to be featured.
Is this complex to achieve?
Thanks.
álvaro
]]>I have this working fine but have one issue. The featured posts are showing on the home page but int he normal posts page they have been excluded.
There doesn’t seem to be an option for this in the settings. How can I make sure the posts display within the loop elsewhere on the website?
Thanks in advance
]]>Is it possible to change the word ‘Featured’ in page listings and the phrase ‘Check to make this featured’ on page edit screens to something else? Without editing the plugin files directly?
For example, I’m using NS Featured Posts to give a user the option to choose which items should appear in a secondary nav, so the word ‘Featured’ is a bit confusing.
Thanks
]]>Thanks for this wonderful plugin @rabmalin.
I followed your sample Code and had success modifying the code.
Am having issues with how to Show featured post for only current active Category. Example show or restrict only featured posts from ‘books’ category when you are viewing the ‘books’ category archive.
One thing I noticed is that featured posts from different categories show in other categories.
I scanned the internet for the past few days yet no progress with this, kindly assist.
Thanks again for your plugin
]]>Hi – is it possible to include the thumbnails and descriptions with this plugin?
]]>Can you update the information on this page?
https://gist.github.com/ernilambar/ad31b89b459e954fc950
If I apply this template to my page, it states:
Sorry, no posts matched your criteria.
]]>I am wondering if there is a way to show an excerpt of the featured post instead of only:
Welcome September 1, 2016
Also, I am wanting all posts created to be featured and displayed in the widget automatically. I don’t want to have to click on the checkbox everytime. Especially since I will have members creating posts, I don’t want that extra step to take. Is there a way to have this automatic?
Thanks
]]>Is there a way to add the author’s avatar thumbnail on the widget just like on the NS Recent Comments?
Thanks!
]]>Hi there,
I just placed :
<?php $query = new WP_Query( array( ‘meta_key’ => ‘_is_ns_featured_post’, ‘meta_value’ => ‘yes’ ) ); ?>
into the post template and nothing shows!
Can you help please?
Thanks
Hi is there a way users with role ‘editor’ to check and uncheck the check-box in admin column?
Its a good idea if we can select in plugin settings page – roles with rights to control checkbox.
]]>Hi, thank you for your work, it is awesome ??
But I have idea..For example I have on frontpage one sticky post over ns featured checkbox. What I want is limiting click on checkbox in admin custom post types. If I click on my sticky post, others checkboxes will be darken and ajax call not fire – and simple alert in js “News is limiting to 1 item on frontpage”. Some filter for example:
apply_filters( 'ns_featured_posts_limit', function($post_type,$limit) {
if ($post_type=='news') {
$limit = 1;
}
return $limit;
});
apply_filters( 'ns_featured_posts_alert', function($post_type,$alert) {
if ($post_type=='news') {
$alert = "News is limiting to %d item on frontpage";
}
return $alert;
});
]]>
[03-Nov-2015 00:14:30 UTC] PHP Notice: Undefined index: filter-ns-featured-posts in D:\WWW\Web\projects\wordpress\wp-content\plugins\ns-featured-posts\class-ns-featured-posts-admin.php on line 439
[03-Nov-2015 00:14:30 UTC] PHP Notice: Undefined index: filter-ns-featured-posts in D:\WWW\Web\projects\wordpress\wp-content\plugins\ns-featured-posts\class-ns-featured-posts-admin.php on line 440
]]>class-ns-featured-posts-admin.php
#375
label – if i click on label, checkbox is alive ??
<label>
<input type="checkbox" name="nsfp_settings[make_this_featured]" value="yes" <?php checked( $is_ns_featured_post, 'yes', true); ?> />
<span class="small"><?php _e( 'Check this to make this post featured.', 'ns-featured-posts' ); ?></span>
</label>
]]>
Hi, using OpenMag free theme and NS plugin.
Theme uses Themater_FeaturedPosts for showing slider with these options:
category, post/page id, custom slides.
—-
if($featuredposts_source == ‘category’) {
if($this->theme->display(‘featuredposts_source_category’)) {
$featuredposts_query = ‘posts_per_page=’ . $this->theme->get_option(‘featuredposts_source_category_num’) . ‘&cat=’ . $this->theme->get_option(‘featuredposts_source_category’);
}
} elseif($featuredposts_source == ‘posts’) { … etc for custom, pages…
I tried inserting the ns_featured query after adding “featured” in main selection. It appears as a menu item,(can be selected and activated) but does not work:
elseif($featuredposts_source == ‘featured’) {if($this->theme->display(‘featuredposts_source_featured’)) {
$featuredposts_query = new WP_Query( array( ‘meta_key’ => ‘_is_ns_featured_post’, ‘meta_value’ => ‘yes’ ) ),’posts_per_page=5′);}}
It opens emtpy slider…
Any ideas?
Tnx
Hi,
thanks for a nice plugin! I was wondering how can I display a different number of posts when using the plugin on different pages? For example, if I wanted to display three featured posts in single pages and only two in the homepage?
Thank you!
]]>If this plugin, “The Events Calendar” plugin, and “The Events Calendar: Facebook Events” plugin are active, the NS Featured Posts plugin breaks the Facebook Event Import functionality. Having all three activated causes the Facebook Event Import to think that every event already exists on my WP Event Calendar, even if it does not. Disabling “NS Featured Posts” resolves the problem, but I really like your plugin, and am hoping it can be resolved.
I’ve notified Modern Tribe regarding this issue, as I am doing here. Thanks in advance for any suggestions on how to resolve the conflict in the meantime!
]]>Is there any way to make this plugin work in two instances? For example allow me to keep a list of ‘featured posts’ as well as a list of ‘popular posts’ that I could display separately? I love the easy checkbox functionality to select my featured posts, but I wish I could have two separate batches of featured posts.
Possible, or no?
]]>