Damiane Muller
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Post lock timing outYeah I am! Yeah that’s what I’ve ended up doing, I’ve used the filter to increase the post lock to 1 hour to be safe… might write something to remove the post lock once the person leaves the edit page cause now the post stays locked for an hour
Forum: Fixing WordPress
In reply to: Post lock timing outThe issue seems to be that after the default 150 second post lock (wp_check_post_lock_window()), WordPress doesn’t seem to check if the person is still editing the post and unlocks it for anyone to be able to edit the post again… I thought that logic would already be written into WordPress? Unless it is no longer supported by the classic editor
All good @treibalen
I managed to use $wpdb to query the database and get the email addresses from the list I needed –
$wpdb->get_results(‘ SELECT wp_mailpoet_subscribers.email FROM wp_mailpoet_subscriber_segment, wp_mailpoet_subscribers WHERE wp_mailpoet_subscriber_segment.segment_id = “99” AND wp_mailpoet_subscriber_segment.status = “subscribed” AND wp_mailpoet_subscribers.status = “subscribed” AND wp_mailpoet_subscriber_segment.subscriber_id = wp_mailpoet_subscribers.id ‘, OBJECT);
Hope this helps someone looking to do the same thing that I am.
@treibalen could there be any performance issues with a request like this in terms of load?
Forum: Fixing WordPress
In reply to: Plain HTML website, show latest postsNo worries mate, always happy to help!
Forum: Fixing WordPress
In reply to: Home Screen and Menu Won’t UpdateI’m not seeing those changes on the website… interesting! I’m guessing there’s a cache that is not clearing. Can you please check if your WordPress site has any caching plugins installed? It looks like you’re hosted on WP Engine so there may be a cache there that you need to clear.
Forum: Fixing WordPress
In reply to: Home Screen and Menu Won’t UpdateHi @sharismith
Where on the home page did you add an address, and what menu item did you change? I’ll check if I can see those changes on my end and advise.
Forum: Fixing WordPress
In reply to: Footer Issue when Creating a New Page@petek26 No worries mate!
Forum: Fixing WordPress
In reply to: Plain HTML website, show latest postsHere’s some basic PHP that requests the posts from the WP REST API, and displays the linked post titles. You’ll want to change $json_url to the Posts Endpoint on your WordPress site at “/blog”.
<?php $json_url = 'https://css-tricks.com/wp-json/wp/v2/posts'; $json = file_get_contents($json_url); $data = json_decode($json, TRUE); foreach($data as $post): ?> <a href="<?php echo $post['link']; ?>"><h3 class="post-title"><?php echo $post['title']['rendered']; ?></h3></a> <?php endforeach; ?>Forum: Fixing WordPress
In reply to: Populate webpage from excelI think the most efficient way to do this would be to move the Excel sheet content into a Google Sheet (and hereafter manage the data on Google Sheets), and then use the Google Sheets API to dynamically create individual pages for each row of content.
I’m not sure how familiar you may be with PHP/HTML but what I have mentioned above would require custom development.
Reading content from Google Sheets API: https://developers.google.com/sheets/api/samples/reading
Forum: Fixing WordPress
In reply to: Admin Unable to view pageThis could be caused by a page builder plugin – are you using a page builder plugin on the website?
Forum: Fixing WordPress
In reply to: Footer Issue when Creating a New PageLooks like you have different CSS applying to that page, where the margin is not being applied to the footer widget.
From what I can see, other pages on the website have the body class “et_pb_gutters3”, whereas the page you are having issues with has the body class “et_pb_gutters1” instead.
Try changing the Divi page template on the page in question to the same template that is used on the other pages.
No, I am trying to get all the email addresses in the list using the API to then use them to run a PHP function for each.