braderz31
Forum Replies Created
-
Forum: Plugins
In reply to: [OpenTickets Community Edition] Fatal Error activating pluginI’ve tried increaseing php memory limit to 1024mb but it’s still happening
Forum: Plugins
In reply to: [OpenTickets Community Edition] Fatal Error activating pluginI’m getting this error in debug:
[21-Apr-2017 09:40:52 UTC] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 12288 bytes) in /home/mysite/public_html/wp-content/plugins/opentickets-community-edition/inc/sys/admin-menu.class.php on line 388
OK – I discovered the issue was caused by my .htaccess file. I was also using the Sucuri plugin and using the hardening option of restricting access to the .htaccess file. I disabled this option on Sucuri and now it’s working fine.
I’ve started the getting the same issue on a new site as well. Just get a 404 every time a PDF URL is clicked.
I’ve tried resetting the permalinks but still no joy
Forum: Plugins
In reply to: [Arconix Portfolio] Using an exiting custom postHi sarah_alshareef
I just wondered if you managed to get this working with another custom post type as I need to do the same.
It would also be good to do this with the standard WP posts.
Any direction as to what I need to amend please?
Thanks
Brad
Forum: Fixing WordPress
In reply to: Reset password form 2nd hookHey there, I just wondered if you managed to solve this as I have the same issue as well.
Once a user requests to have their password reset, they are sent a confirmation email with a link that directs them to another form where they can enter a new password…
… it is this form that I want customise.
Any ideas would be much appreciated – thanks
Brad
Hi thanks for the response.
Maybe I wasn’t particularly clear in my original question. The code above is a custom login form that I’ve created. When a user submits a successful login, I want it to redirect to a custom page – this all works fine.
It’s only when the incorrect details are entered, I want it to ignore the
target="_blank
and stay on the same page.Thanks
Forum: Hacks
In reply to: Custom wordpress login form redirect in new windowHi – thank you for your reply.
My original code does actually perform the redirect but its the fact that it will not open in a new window that is my problem.
Any idea how to achieve this?
Thanks
Forum: Hacks
In reply to: Display custom post type by custom field date rangehmm, maybe I’m not nearly there then ??
To be honest I’m just hacking my way through this as I’m not a PHP developer. Are you able to provide any code examples to help me, I’m just worried I’m running time.
Thanks again for all your help.
Forum: Hacks
In reply to: Display custom post type by custom field date rangeOk, I’m getting there now. I’ve managed to list all events in the correct order but I need to display the events for a specific month.
I guess I would need to query the date field to see if it contains the specific month?
Any ideas how to do this please?
This is my code
<?php $loop = new WP_Query( array( 'post_type' => 'event', 'event-category' => 'bmx racing', 'posts_per_page' => -1, 'orderby' => 'meta_key', 'order' => 'ASC', 'key' => 'event-start-date', 'value' => date('Ymd',strtotime("today")), 'compare' => '>=', 'type' => 'DATE' ) ); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
Forum: Hacks
In reply to: Display custom post type by custom field date rangeI’ve now come up with this, but I’m not getting any results…
<?php $loop = new WP_Query( array( 'post_type' => 'event', 'event-category' => 'bmx racing', 'posts_per_page' => -1, 'orderby' => 'meta_value', 'order' => 'ASC', 'meta_key' => 'event-start-date', 'meta_value' => array( 2012-05-01, 2012-05-31 ), 'compare' => 'BETWEEN', 'type' => 'DATE' ) ); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <div style="width:100%;"><?php meta('event-start-date'); ?></div> <?php the_title( '<p><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></p>' ); ?> <?php endwhile; ?>
Forum: Hacks
In reply to: Display custom post type by custom field date rangeHey thank so much for your quick reply.
Please accept my apologies as I am really new to PHP.
Are you able to explain how to convert the date that I currently have and then compare them so I can find all posts within a date range
I’ve got this so far, but I don’t know how to convert the date as you describe above. (Also I get an error with this code)
<?php query_posts( array( 'post_type' => 'event', 'event-category' => 'bmx racing' 'posts_per_page' => '-1', 'orderby' => 'date', 'order' => 'ASC', 'meta_query' => array( array( 'key' => 'event-start-date', 'value' => array( 2012-05-01, 2012-05-31 ), 'compare' => 'BETWEEN', 'type' => 'date', ), ), ) ); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
I appreciate your help and patience ??
Forum: Hacks
In reply to: Create custom field from Post dateHi Michael
Actually, I’ve realised that my original query is not correct. The posts act like ‘events’ and even though I am publishing the posts they actually have a date (some time in the future) in another custom field that I need extract the month from.
Is this possible?
Hope this is clear.
Thanks
Brad
Forum: Hacks
In reply to: Create custom field from Post dateHi Michael
Thanks for such a quick reply.
I’m working on website that needs to display a list of posts in a specific category for each month of the year. My client wants these posts set out in a grid/calendar like format. (Unfortunately all the event type plugins didn’t quite meet the requirements). So to achieve this, I’ve created a table and I’m using the ‘Special Recent Posts PRO’ plugin and placing shortcodes from the plugin in the appropriate place in the table.
The plugin allows me to filter by category no problem, but I need filter by month also and so I thought of using a custom field for this.
If there is a better way then I am open to suggestions. My PHP knowledge is limited but if I’m pointed in the right direction I should be ok.
Many thanks again.
Brad