Muhammad Mohsen
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: how to Hide "Specific Category Posts" From specific user roleThanks @IMICreation
Thank you @shardul Pandey it works great , but my new role i added doesnt appear in the Capa User Role , so i cant hide the category from them. i see the defult Roles only , is there anyway i can add the new role to the capa role setting ?
Thank you very much
Forum: Fixing WordPress
In reply to: Add prefix to specific postIt works .. thank you very much ??
Forum: Fixing WordPress
In reply to: Add prefix to specific postWorks great ??
i’m really shy to ask againi got unnecessary “Updated” inside the post
https://ccnplessons.com/frame-relay/
Thanks in advance.
Forum: Fixing WordPress
In reply to: Add prefix to specific postit worked now .. thank you for help
now i have another problem .. when you browse the category that has an updated post .. the menus are effected too, check here
https://ccnplessons.com/lessons/ccna/network-introduction/
===========================================
@peter_l
the filter worked itself without your code,
it was in the bottom of my template files ??Forum: Fixing WordPress
In reply to: Add prefix to specific posti added it to every template file and it does nothing.
Forum: Fixing WordPress
In reply to: Add prefix to specific postyeah i think there is something wrong with original code, i dunno!
function add_suffix($title) { if( in_category( 'updated' ) ) $title = $title . '<span class="updated">' . 'Updated'. '</span>'; return $title; } add_filter('the_title', 'add_suffix');
Forum: Fixing WordPress
In reply to: Add prefix to specific postSorry my bad
https://ccnplessons.com/page/7/
look @ post “06 – How Data TransfersUpdated”
“updated” suppose to be
.updated{float:right;color:#ff0000;}
and it worked before i change
<?php the_title(); ?>
to<?php the_title_attribute(); ?>
Forum: Fixing WordPress
In reply to: Add prefix to specific postyes it worked with
<?php the_title_attribute(); ?>
but there is something needs to get edited here i believe because the styling is not working now ??
function add_suffix($title) { if( in_category( 'updated' ) ) $title = $title . '<span class="updated">' . 'Updated'. '</span>'; return $title; } add_filter('the_title', 'add_suffix');
Forum: Fixing WordPress
In reply to: Add prefix to specific postthis is the whole code
function add_suffix($title) { if( in_category( 'updated' ) ) $title = $title . '<span class="updated">' . 'Updated'. '</span>'; return $title; } add_filter('the_title', 'add_suffix');
Forum: Fixing WordPress
In reply to: How to get post title prefixes?i wanna add suffix to specific posts .. any idea? ??
Forum: Plugins
In reply to: [WTI Like Post] [Plugin: WTI Like Post] Suggestion – extra images/stylesmaybe one more style for dark themes ??
i just deleted the plugin completely and everything back to work.
Forum: Fixing WordPress
In reply to: Excerpt, send trackbacks and custom fields are not foundi have installed a fresh WP and it’s working fine , but when i changed the database from my config file i got same problem .. so the problem in my database not in any WP file .. how can i fix it ?
Thanks.
Forum: Fixing WordPress
In reply to: Excerpt, send trackbacks and custom fields are not foundlike what ?
Forum: Themes and Templates
In reply to: categories counter ( CSS issue )up