Naziman Azlye
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin Organizer] Applying filter to ALL posts?Sorry, i don’t get it. Is it you mean can disable plugin only for admin page, permalink like this https://example.com/wp-admin/ ?
And if can, i want to ask second question. How filter global plugin works? Is it that mean is_admin()?
Forum: Plugins
In reply to: [Plugin Organizer] Applying filter to ALL posts?What do you mean by “disable a plugin for all posts on one page”?. Is it disable a plugin by using one filter?
Right now i’m searching how to enable plugin only on post or page because my permalink using post name format. So i don’t know how to put permalink in filter setting.
So for now, i’m using the filter to disable plugin in homepage only. The easiest one. ??
I think i have the answer. I have to use the tag name to make featured content.
And i have give wrong question, not how to make the post in original order but how to make the sticky post diappear at homepage.
I will mark this topic as resolved.
Forum: Themes and Templates
In reply to: [Twenty Fourteen] Number of Posts displayedYour second question means you want to use excerpt. Check this thread, have two solution there.
https://www.ads-software.com/support/topic/excerpts-instead-of-whole-post?replies=2
Best Regards,
Naziman azlyeForum: Themes and Templates
In reply to: [Twenty Fourteen] Excerpts Instead of Whole PostIf you want using excerpt by change functions.php file because don’t want use too many file in child theme. You can use this code. This is the code i’m using in my blog.
function my_excerpts($content = false) { // If is the home page, an archive, or search results if(is_home() || is_archive() || is_search()) : global $post; $content = $post->post_excerpt; $content = strip_shortcodes($content); $content = str_replace(']]>', ']]>', $content); $content = preg_replace("/<img[^>]+\>/i", "", $content); $content = strip_tags($content, '<p>'); // If an excerpt is set in the Optional Excerpt box if($content) : $content = apply_filters('the_excerpt', $content); // If no excerpt is set else : $content = $post->post_content; $content = strip_shortcodes($content); $content = str_replace(']]>', ']]>', $content); $content = preg_replace("/<img[^>]+\>/i", "", $content); $content = strip_tags($content, '<p>'); $excerpt_length = 65; $words = explode(' ', $content, $excerpt_length + 1); if(count($words) > $excerpt_length) : array_pop($words); array_push($words, '[...]'); $content = implode(' ', $words); endif; $content = '<p>' . $content . '</p>';; endif; endif; // Make sure to return the content return $content; } // Add filter to the_content add_filter('the_content', 'my_excerpts');
Best Regards,
Naziman AzlyeForum: Plugins
In reply to: [Lazy Load for Videos] Load js/css on demanGreat idea. I hope future updates will have this feature.
Forum: Plugins
In reply to: [Yoast SEO] Sitemap white screen blank pageSuddenly, the sitemap have work properly. I don’t know how to close this thread, so i mark resolved.
Forum: Themes and Templates
In reply to: [Twenty Fourteen] functions.php child themeIs it your blog became white blank screen? Then i think you forgot to put opening <?php and closing ?>.
Sincerely,
[sig moderated as per the Forum Rules]Forum: Themes and Templates
In reply to: [Twenty Fourteen] Grid, Featured & Featured Image confusionHi,
“How can I have the first image from the Featured post show up in the grid automatically?”
There have many plugin can solve this problem. Personally i never try any auto generate first image plugin but maybe you can try this plugin.
https://www.ads-software.com/plugins/auto-post-thumbnail/
or maybe you can try add this code in your functions.php file. Don’t know this code work or not because never try it, maybe you can tell if this code work.
function autoset_featured( $new_status, $old_status, $post ) { if( $new_status != 'publish' ) return; $already_has_thumb = has_post_thumbnail($post->ID); if (!$already_has_thumb) { $attached_image = get_children( "post_parent=$post->ID&post_type=attachment&post_mime_type=image&numberposts=1" ); if ($attached_image) { foreach ($attached_image as $attachment_id => $attachment) { set_post_thumbnail($post->ID, $attachment_id); } } } } add_action( 'transition_post_status', 'autoset_featured', 10, 3 );
“How can I set a featured image for a post that is also Featured and not have it show up twice in the post”
If the first question problem solved, maybe you will have problem in this second question. And i still searching the answer. But for right now, i edit manually each post because my blog only have 100 post to edit. And the best thing is, i can choose better and bigger featured image for future theme if i change my theme again.
I hope there have better solution to solve this problem.
Sincerely,
[sig moderated as per the Forum Rules]Forum: Fixing WordPress
In reply to: How to change default RSS feed title?Hi,
I have same problem like cowboy Mike and Akash. My feed title like this “Naziman Azlye 2.0 | Naziman Azlye 2.0”My feed link is :
https://naziman.com/feed/My feedburner link is :
https://feeds.feedburner.com/NazimanFeedLike cowboy Mike, i have checked the box in WordPress SEO “Force rewrite title”.
I have check it page source, no “Naziman Azlye 2.0 | Naziman Azlye 2.0” found.
I don’t know the problem but i try to change the feed title to something else. Can somebody give some advice?
Regards,
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Table not responsive on mobilHi,
Thanks for this post, i don’t have to make other post.
But still i have some question.
First, why you not make this responsive table combine with the actual plugin?
Second, can the first row not become first column at higher pixel like devices with 1200 pixels? I mean, responsive table.
Regards,
Naziman AzlyeForum: Plugins
In reply to: [Redirection] Warning messages after update to WordPress 3.5Hye,
Is it
/wp-content/plugins/redirection/group.php
or
/wp-content/plugins/redirection/models/group.php
because in plugin editor i don’t see that file. And my warning also show models/group.php
Warning: Missing argument 2 for wpdb::prepare(), called in /home/xxxxx/public_html/wp-content/plugins/redirection/models/group.php on line 70 and defined in /home/xxxxx/public_html/wp-includes/wp-db.php on line 990
Regards,
Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] displaying full title in chromeCan i know what file to modify? When i check in theme editor, only have 6 template from YARPP custome themplate while in plugin editor only have yet-another-related-posts-plugin/options.css file.
I will try modify the theme CSS by myself.
Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] displaying full title in chromeHye,
I also want to setup make the display show full title but i don’t understand CSS.
How can i do that? Is it if i change the thumnail size using the tutorial in FAQ will show the full title?
Regard,
Forum: Plugins
In reply to: [WordPress Related Posts] WordPress Related Posts Plugin Getting BloatedHello,
Before this, i’m using yarpp to show related post plugin but i want to try another plugi because the plugin adding extra table in database and the thumbnail cannot customize.
So i try another plugin and today i found wordpress related post. I like this plugin because the plugin have statistic and can customize the thumbnail.
But when i see in database the plugin adding extra table “wp_rp_tags”. The best thing is, this plugin installed in 5 hours only but make many rows (1,319 rows) than yarpp (846 rows).
Can you remove the extra table?
Other question. Can i know what is it promoted content means? When i visit related-posts.com, it said that we can make money with it but how?
Best,
Naziman