faulknordonald
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress core index.php file modified. Does this look right?My website was hacked by Black Hat Cyber Team. And because of that 30 of my other websites were affected.
Here’s the website I am creating for someone using your plugin. For the most part, I’m satisfied. Had A LOT of customizations to make, but overall, I thank you for the plugin: classifiedfinds.com. Customer will be purchasing the Pro Plugin at some time in the future.
I do know how to change this information myself, but each plugin is set up differently. If I knew where to find the form validation and form frontend I should be able to change it myself.
Forum: Fixing WordPress
In reply to: post count pluginThat looks like it might. I thank you for that. I am going to go and try it.
Forum: Fixing WordPress
In reply to: post count pluginActually, there’s not really a need for a plugin. Could someone tell me how to create a shortcode in functions.php in order to insert post count in this manner? I know how to write PHP, but not very well with the WordPress framework.
I’m not getting any alt text. Even on the thumbnail. Any reason for this? I checked settings and I don’t see an alt text option.
UPDATE: I figured it out. But Modula should do it themselves instead of expecting us to.
I updated this line:
<img class='<?php echo esc_attr(implode( ' ', $data->img_classes )) ?>'<?php echo Modula_Helper::generate_attributes( $data->img_attributes ) ?>/>
at includes > public > templates > items > item.phpTo this:
<img alt='<?php get_post_meta( $attachment_id, '_wp_attachment_image_alt', true ); ?>' class='<?php echo esc_attr(implode( ' ', $data->img_classes )) ?>'<?php echo Modula_Helper::generate_attributes( $data->img_attributes ) ?>/>
- This reply was modified 4 years, 5 months ago by faulknordonald.
Forum: Developing with WordPress
In reply to: Random Posts on HomepageBTW Joy, I am currently using a plugin with a shortcode whereas I can place the random posts on a page. So, I created a page using the shortcode, and it looked nothing like what I wanted it to. So, I had to heavily modify the plugin’s “posts.php” page to suit my needs, then I switched my homepage to that static page.
Forum: Developing with WordPress
In reply to: Random Posts on HomepageOk, thank you bcworkz and Joy. And I do believe it’s something wrong with the theme itself. I can add any other piece of code to functions.php, just not that piece of code. I’ll contact the theme’s author, thanks again.
Forum: Developing with WordPress
In reply to: Random Posts on HomepageI doubt it was me. I can remove that and add any other piece of code and it works. Plus, I know PHP quite well, just not familiar with a lot of WordPress-specific functions. I understand very well how pagination works. I don’t intend to use pagination, I just want random posts on the homepage (no pagination). And yes, my homepage is set to latest posts (WordPress core should introduce random posts to that lol). I actually started this website from scratch (I coded it myself, no WordPress), but then decided to switch to WordPress as it’s less time consuming.
Forum: Fixing WordPress
In reply to: Require a breakOh wait, no… I switched from the Education LMS Theme since LearnPress – Course Reviews doesn’t work with it. I’m using a non-LMS theme, currently.
Forum: Fixing WordPress
In reply to: Require a breakI use Education LMS Theme with LearnPress plugin.
Forum: Developing with WordPress
In reply to: Prevent outsiders from being able to inject malicious codeIs there a reason you want to do it that way?
I would look up the documentation for esc_html() and consider escaping the html. With wp_kses you can allow certain types of html and restrict everything else.