I am looking for a function to create category links in the wordpress loop for articles

You can use this for single category name with link: $category = get_the_category(); echo ‘<a href=”‘.get_category_link($category[0]->cat_ID).'”><img src=”‘.$category[0]->cat_name.'” alt=”‘.$category[0]->cat_name.'” /></a>’; Or for the loop you can try this: foreach(get_the_category() as $category){ echo ‘<a href=”‘.get_category_link($category->cat_ID).'”><img src=”‘.$category->cat_name.'” alt=”‘.$category->cat_name.'” /></a>’; }

Text decoration no longer applied to In post links

Using !important is generally not recommended, as it leads to problems like this where styles can’t be overridden and a site becomes an unmaintainable mess. Your stylesheets are absolutely littered with !important: I count 909 instances. Instead of using !important you should override styles by supplying a rule that’s more specific. You can find out … Read more

Render link description in navigation block

I solve this problem by using WordPress Filter hooks I use the filter render_block, to hook in altering the existing HTML So I created custom_render_block_core_navigation_submenu hook function. Inside my hook I am using conditions to avoid storing my modified code in the database. Target the type of block (core/navigation-submenu) Only render in the front-end Don’t alter … Read more

Force Profile link for username, and stop “Website” field on Profile from becoming offsite link atop Comments, in “Recent Comments” list, etc

Yup, there’ll be no link when the user doesn’t fill in that field or when leaving a comment as a guest. As far as redirecting comment links to the bbPress profile goes, popping this in your functions.php should do the trick: /** * Redirect user links in comments to BBPress profile * * @param object … Read more

My links on the site are suddenly not underlined anymore

(The following results I extracted using the Firefox Inspector) The specific example you called out does not have any selector that would be make it underlined. Only selectors that make it specifically not underlined: a { text-decoration: none; } .elementor a { text-decoration: none; } Other anchors(links) do have a rule for making it underlined … Read more

Remove rel=”ugc” from links in comments

The rel=ugc is added by a default filter on pre_comment_content. You can disable this by adding the following line to your functions.php: remove_filter (‘pre_comment_content’, ‘wp_rel_ugc’, 20); This may not be wise. If at some point you change your mind, you would have to go through all comments to add it. It is problably better to … Read more

Main Menu Hover is Always White

Looks like Elementor is setting the hover color for all links on the page to #5E6462, which is hard to read against the background color of the nav menu. Somewhere within Elementor the color is being set; that will need to be changed.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)