luminancedesign
Forum Replies Created
-
Forum: Plugins
In reply to: [Ultimate Wordpress Auction Plugin] Description formatting being strippedSolution found:
I have tweaked the template now to wrap the output of the description in ‘auction-description-tabs.php’ with the ‘wpautop()’ function – which seems to work as expected, paragraph formatting along with lists are now correct.
So what was:
echo $wdm_auction->post_content;
Is now:
echo wpautop($wdm_auction->post_content);
Edit: Ticket added for PRO version.
Forum: Plugins
In reply to: [JS Archive List] Exclude Categories not saved?Hi Miguel,
Thanks for the update! Seems to be working great for me so far!
Forum: Plugins
In reply to: [JS Archive List] Exclude Categories not saved?I wonder if its an WordPress version issue – maybe a conflict somewhere?
Forum: Plugins
In reply to: [Related Links] [Plugin: Related Links] Thumbnail for related posts?How does one pull the post excerpt in a similar fashion?
Ended up commenting out the line that inserts it into the_content in the plugin file:
// add_filter('the_content','pronamic_page_teasers_the_content', self::FILTER_THE_CONTENT_PRIORITY);
I’m also not being successful with the ‘removal of the_content’ insertion by default, after adding the filter.
Any workaround or fix known?
Forum: Plugins
In reply to: [Job Manager] Display Custom Field on Applications List in WP AdminHi There,
I just tweaked line 420 of admin-applications.php from:
$parentstr[] = "<a href='?page=jobman-list-jobs&jobman-jobid=$data->ID'>$data->ID - $data->post_title</a>";
to read:
$parentstr[] = "<a href='?page=jobman-list-jobs&jobman-jobid=$data->ID'>Ref: $data->job_field6 - $data->post_title</a> [Post ID: $data->ID]";
This [ Ref: $data->job_field6 ] just adds the output of the field required – in my case it was ID number 6, with a prefix of ‘Ref’ for reference.
Hope this helps!
P.S. As for my second query, I ended up manually changing a value in the DB.
Forum: Plugins
In reply to: [Job Manager] Display Custom Field on Applications List in WP AdminAbove query now unrequired.
New issue, checkboxes on the ‘Job Manager > Settings > Job Form Settings’ are not saving when updated – any ideas why this is? I have 3 sites set up the same, one works fine, the other two are having none of it!
Any suggestions or resolutions appreciated.
Forum: Fixing WordPress
In reply to: Site hacked through AkismetI’ve just received notification via email from my WordPress Firewall plugin stating that it has detected and blocked a potential attack which seems to target the Akismet plugin – may be worth installing this plugin, particularly if it’s going to catch attacks like this [as it has done with my site]!
My method is a little unorthodox – there’s definitely a more elegant way than I achieved it, but here goes:
On the Job Manager plugins’ ‘Display Settings’ I added a ‘Job List Template’ with the following code:
[Code moderated as per the Forum Rules. Please use the pastebin]
This adds a class of the job categories in the plugin Admin Settings, to each of the cells that a jobs link is in, I then used jQuery to find non matching classes, then traverses to remove the parent row – acting as a filter to leave the matched category in the table.
The category reference was pulled from the ID I’d added to the header.php file:
<body <?php body_class(); ?> id="<?php echo $post->post_name; ?>">
and also by adding as a class in the jop post page body template by using jQuery to pull the category name from the table and then add it to the body, e.g.
$('table td.job-category a:contains("NEW JOBS")').parent('body').addClass('new-jobs'); $('table td.job-category a:contains("OLD JOBS")').parent('body').addClass('old-jobs');
So then if an pages body ID or class matches a category, the unmatched rows in the table are removed, leaving only the matching ones.
I also used the CSS to colour code content for branding.
Essentially my hack code lists all jobs, compares page ID or class for a match then removes non matching ones to leave jobs in category selected displayed.
Sorry I’m so bad at explaining it – it took me a while to figure out how to get it working myself, so I know this may not be clear immediately!
See:
https://www.bberecruitment.co.uk/vacancies/allor by category:
https://www.bberecruitment.co.uk/vacancies/Forum: Networking WordPress
In reply to: Multisite Site Url QuestionI’ve just used:
<?php echo get_home_url('1','/'); ?>
To get the main site [ID 1] – hope this helps!
From: https://codex.www.ads-software.com/Function_Reference/get_home_url
I have it in the page templates after the content call:
<?php the_content(); ?> <?php // list Job Manager Vacancies $posts = jobman_display_jobs_list('all'); echo $posts[0]->post_content; ?>
I’d suggest creating a test.php template for a test page in WP, then tweaking the template php until you’re comfortable with the way it works, then drop your final code into the template page where necessary.
I created a ‘Vacancies’ page template and inserted the above code into the body area. See output example:
https://www.bberecruitment.co.uk/vacancies/all/
‘All’ is my renamed default Job Manager page that the plugin creates when installed.
—
I’ve also created a ‘Latest’ page template and done a similar thing, only using a mix of jQuery, PHP and CSS to limit the display to 10 jobs being listed:
https://www.bberecruitment.co.uk/vacancies/latest/
<?php
// list Job Manager Vacancies
$posts = jobman_display_jobs_list('all');
echo $posts[0]->post_content;
?>
Hope this helps!
P.S. An update to the Job Manager plugin was released a few days ago.
Forum: Plugins
In reply to: [Job Manager] [Plugin: Job Manager] Job list category in homepage/pageI guess if you want to display a list of links for all categories on one page you could pull the respective content from the category pages using PHP or jQuery etc, onto a ‘combined’ template page.
Still wish there was an easier way to do this – I ended up assigning classes in the display code, pulling matching category names from the full list table, then using jQuery to clone the matching content to the visible part of the page, before removing the full list table to leave just the filtered jobs.
Crude and not the ideal approach I know, but was the first method that I came up with that worked in the time I had – I do plan to streamline it sometime! See:
https://www.bberecruitment.co.uk/vacancies/
Colour coding the jobs by matching categories can be seen here:
https://www.bberecruitment.co.uk/vacancies/all/
Hoping there will be an update soon!
Forum: Plugins
In reply to: [Job Manager] [Plugin: Job Manager] Job list category in homepage/pageI’m also looking for a way to display a hierarchical unordered list of categories and posts within each. So far, no joy.
As the categories created in Job Manager seem to be internal to job manager and not WP post categories, there is very little manipulation possible from what I can tell. It would be nice if it created an actual ‘post’ for a ‘category’ in the WP structure rather than the way it does – we shall see what changes when / if an update comes…