Creatrix
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Change Name in Browser TabI presume you have assigned a page as your home page under settings > reading?
If you navigate to Pages and then the page you have set as your home page, what is the title of this page?
It looks like it’s being pulled from there.
Alternatively you could install an SEO plugin which will let you manually re-write the page titles.
Forum: Fixing WordPress
In reply to: Problem with log-inGet access to the database and change back the site url in the wp_options table.
Forum: Plugins
In reply to: [WP Job Manager] List jobs from one employer in a dropdownPerfect, Thank you Mike.
Keep up the good work!
Forum: Fixing WordPress
In reply to: Using a PHP variable within a shortcodeRemoving two brackets made it work:
<?php $display_name = um_user('user_login'); ?> <?php echo do_shortcode('[jobs keywords="' . $display_name . '"]');?>
By the community role, not the WP role.
Forum: Plugins
In reply to: [WP Job Manager] List jobs from one employer in a dropdownI’m getting ever closer. Just need to figure out how to return the Job Title and not the Title of the current page:
<select> <?php $args = array( 'post_type' => 'job_listing', 'orderby' => 'date', 'order' => 'desc', 'author' => get_current_user_id() ); $myposts = get_posts( $args ); foreach ( $myposts as $post ) : setup_postdata( $post ); ?> <option> <?php the_title(); ?> </option> <?php endforeach; wp_reset_postdata();?> </select>
Forum: Plugins
In reply to: [WP Job Manager] List jobs from one employer in a dropdownOk, This returns the content for the jobs, but the title of the current page and permalink of the logged in user?
<ul> <?php $args = array( 'post_type' => 'job_listing', 'post_status' => array( 'publish' ), 'orderby' => 'date', 'order' => 'desc', 'author' => get_current_user_id() ); $myposts = get_posts( $args ); foreach ( $myposts as $post ) : setup_postdata( $post ); ?> <li> <a href="<?php the_permalink(); ?>"><?php the_title(); ?><?php the_content() ?></a> </li> <?php endforeach; wp_reset_postdata();?> </ul>
Forum: Plugins
In reply to: [WP Job Manager] List jobs from one employer in a dropdownThanks Mike.
I’ve got this but it doesn’t seem to work:
<?php $args = array( 'post_type' => 'job_listing', 'post_status' => array( 'publish' ), 'orderby' => 'date', 'order' => 'desc', 'author' => get_current_user_id() ); $posts_array = get_posts( $args ); ?>
Do you know where i’m going wrong?
Forum: Plugins
In reply to: [Contact Form 7 - Dynamic Text Extension] How to use this with a PHP variableGot it working using the following:
function cf7_add_user_email(){ global $post; $user_email = um_user('user_email'); return $user_email; } add_shortcode('CF7_ADD_USER_EMAIL', 'cf7_add_user_email');
then this in CF7:
[dynamictext user-email "CF7_ADD_USER_EMAIL"]
I’m presuming this is this the right way to do it?
Forum: Plugins
In reply to: [Contact Form 7 - Dynamic Text Extension] How to use this with a PHP variableI’ve tried to adapt a solution on another thread – is this along the right lines?
function offer() { $user_email = $_GET['user_email']; $bodinfo = um_user($user_email); $bodcontent = $bodinfo; return $bodcontent; } add_shortcode('of', 'offer');
Forum: Plugins
In reply to: [WP Job Manager] New application notification?Just put the site from localhost to a test server live and it’s working ok.
Must be how i’ve configured MAMP…
Forum: Plugins
In reply to: [WP Job Manager] Date on front end submit form?Just seen this… https://wpjobmanager.com/document/application-deadline/
Forum: Fixing WordPress
In reply to: Events tab in menu doesn't adopt active classI’ve written a small script to overcome this, but there must be a better way of doing it?
var loc = window.location.href; if (/events/.test(loc)) { $('#menu-item-20').addClass('current-menu-item'); }
Forum: Fixing WordPress
In reply to: Migrate local installation to existing site with existing databaseGlad you’ve got it sorted.
I should have mentioned this in my last post regarding the updating of links. I use this tool to do it(download the folder, then upload it via ftp to your wordpress installation folder then visit it in the browser, so something link https://www.mywebsite.com/replace).
You input your old links and new site url then the script will update all the of links saving you a lot of time. Be sure to delete the folder afterwards.
Forum: Fixing WordPress
In reply to: Migrate local installation to existing site with existing databaseWhat will my local site retain once it’s moved over?
Nothing will change on your local site. You’re effectively duplicating it and therefore will have two versions of it. One on your local machine and one on the live server.
Will it keep its uploads and other media?
It will still hold all the uploads. Once you copy the files across to the live server you will need to start uploading them there instead. The two sites are not linked, so if you upload to your local site, it will not show on your live server site. You will need to upload it there as well.
As far as the posts and pages go, isn’t there a way to back those up to an xml file and then import it back once the site is live?
Yes, under Tools > Export.
As for HeidiSQL, wouldn’t I need credentials to access the area of the server where the database is stored?
You’ll just need the MySQL details that i mentioned in my previous post. You will require these any way when you put the site live, as, as far as i’m aware cannot run a live site from a local database. The database must be on a server as well, so you will need these credentials to hook the two up.
Excuse my ignorance and thank you very much for the support.
No worries, we’ve all got to start somewhere.