edtaaffe
Forum Replies Created
-
I fixed it by rewriting the function a little just to help me make sense of things,
function listing_published_send_email($post_id) { if( 'job_listing' != get_post_type( $post_id ) ) { return; } $post = get_post($post_id); $author = get_userdata($post->post_author); $title =$post->post_title; $link = get_permalink( $post_id ); $message = " Hi ".$author->display_name.", Your listing, ".$title." has just been approved at ".$link.". Well done!"; wp_mail($author->user_email, "Your job listing is online", $message); }This worked without a hitch.
I got cocky then and I tried the same approach with the other key email:
function resume_published_send_email($post_id) { if( 'job_listing' != get_post_type( $post_id ) ) { return; } $post = get_post($post_id); $author = get_userdata($post->post_author); $title =$post->post_title; $link = get_permalink( $post_id ); $message = " Hi ".$author->display_name.", Your CV, ".$title." has just been approved and available to recruiters and employers at ".$link.". Good luck!"; $message = $message . "Our recruiter may contact you with tips for approaching specific employers and jobs. We wish you every success"; wp_mail($author->user_email, "Your CV is online", $message); }Please, if you have any knowledge of php, see if you can spot an error.
Thanks
Jay thank you for responding. I thought I would receive notification of a reply and didnt log in until now
I suppose I can do it with CSS if nothing else works.
classs= “whateverclass”.whateverclass{
visibility: hidden;
}Forum: Plugins
In reply to: [WooCommerce] Recognise which template is in use when error occursThanks.
I did find that git page, but the Metro theme Im using looks little like that.
Also looking just now, I notice that some aspects of my ecommerce layout come form wordpress templates and others form woocommerce templates.
There seems to be no consensus or standard way of doing it.Yes I did and they all worked fine.
Today however I did the same thing with another random plugin and got the 404 treatment.
Its possible that something happens on rare random occasionsEverything is right up to date.
I simply go to the plugins store form wordpress.
Any of the buttons attached that image will cause a 404 when I click it
I didnt dare try to download and install. Had problems from plugins in the past.
This particular niche is full of plugins with bad reputations so Im extra careful.Forum: Fixing WordPress
In reply to: Making a child theme when the template file structure is complexYou are a stellar guy. I should have worked this out because I was an asp programmer for years and its very similar.
Now I’ll find my errors and get to work.
Much obliged.Forum: Plugins
In reply to: [WooCommerce] WooCommerce services failing on numerous levelsSome aded information.
There’s been an error with the rt demo import plugin included in the theme.WordPress version 5.8.1 Current theme: Metro (version 1.9.2) Current plugin: RT Demo Importer (version 4.1.3) PHP version 8.0.8 Error Details ============= An error of type E_COMPILE_ERROR was caused in line 192 of the file /home/theshoppinglist/public_html/wp-content/plugins/rt-demo-importer/unyson/framework/includes/option-types/wp-editor/includes/class-fw-wp-editor-settings.php. Error message: Array and string offset access syntax with curly braces is no longer supportedI suspect there may be a connection. Ill see what I can achieve, but not overly confidant.
Thanks, it sounds like quite a workaround, but if all else fails Ill give it a shot.
Im not clear and why this is happening and why now.
It is currently only a chrome based issue, which is suspicious to meNot really, broken links in a page yes, but this wordpress stuff is different.
I have solved some of this for anyone else who has the problem and knows about it
1. I installed an SEO plugin and ticked the boxes to apply “NONDEX” to the tags and categories etc. You could just use theme editor and do it at tag level. Or go to robots.txt and deny each of these pages. The sysntax is easily found online.I have forgotten it now.
That stopped the crawler finding an empty page called tags.
The “neve-home” is still a misery but at least it is not seriously impacting anything.Hope that helps
apologies for empty post, just trying to set the notify me
I still have this problem..
It looks fine in edit mode, but I get a picture in left column that looks OK and the posts are about 30mm wide in a column.
This broke on 22nd having been fin until then
Any suggestions