sbpmedia
Forum Replies Created
-
Forum: Plugins
In reply to: [All-in-One WP Migration and Backup] Exporting without media libraryI used Wpress-Extractor for Windows to extract the contents of the archive.
https://github.com/fifthsegment/Wpress-ExtractorThe SQL file size is 5MB and another folder is ew_backup with the media files.
But, as I am writing this I realize that ew_backup is a folder created by a plugin Easy Watermark. At first glance my thought wast that folder is created by All in One WP Mirgation.
Now I can fix this but I think that needs to be a solution around this if the user chooses to only export the database.
Thank you!
Forum: Plugins
In reply to: [qTranslate] [Plugin: qTranslate] Advanced custom fields translationhi. did you found a solution on how to translate “advanced custom fields”?
Forum: Fixing WordPress
In reply to: Default permalink -1i need a function to do this automatically.
Forum: Fixing WordPress
In reply to: Default permalink -1Forum: Plugins
In reply to: [qTranslate] [Plugin: qTranslate] WordPress Appearance Menusno solution for this problem?
Forum: Hacks
In reply to: Use paginate_links in single-[post_type].phpI posted the solution here https://pastebin.com/dujBqndt
Hi,
Thank you for your quick reply, I will also post on the helpdesk this issue.
Now I’m messing around with custom post types and custom taxonomies pagination, I hope that this issue will get fixed in time so I can use them both in my project.
I tested your plugin a few days ago and it’s the best access manager plugin out there. Keep up the good work! Where I make a donation for this plugin?Forum: Everything else WordPress
In reply to: Using “hours ago/days ago” date formatfind:
<?php the_date(); ?>and replace it with
<?php relative_post_the_date(); ?>
Forum: Plugins
In reply to: Custom Fields Search<?php $querystr1 = " SELECT wposts.* FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta WHERE wposts.ID = wpostmeta.post_id AND wpostmeta.meta_key = 'candy' AND wpostmeta.meta_value = 'candy_value' AND wposts.post_status = 'publish' ORDER BY wposts.post_date DESC"; $pageposts1 = $wpdb->get_results($querystr1, ARRAY_A); foreach($pageposts1 as $key){ $newarray1[$i] = $key["ID"]; $i++; } $querystr2 = " SELECT wposts.* FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta WHERE wposts.ID = wpostmeta.post_id AND wpostmeta.meta_key = 'book' AND wpostmeta.meta_value = 'book_value' AND wposts.post_status = 'publish' ORDER BY wposts.post_date DESC "; $pageposts2 = $wpdb->get_results($querystr2, ARRAY_A); foreach($pageposts2 as $key){ $newarray2[$i] = $key["ID"]; $i++; } $result = array_intersect($newarray1, $newarray2); foreach( $result as $key){ $where .= "$key OR ID = "; } $querystr =" SELECT $wpdb->posts.* FROM $wpdb->posts WHERE ID = $where 0 AND $wpdb->posts.post_type = 'post' ORDER BY $wpdb->posts.post_date DESC"; $pageposts = $wpdb->get_results($querystr, OBJECT); ?> <?php if ($pageposts): ?> <?php foreach ($pageposts as $post): ?> <?php setup_postdata($post); ?> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"> <?php the_title(); ?></a></h2> <?php endforeach; ?> <?php else : ?> <h2> Not Found</h2> <?php endif; ?>
It’s still in development, I will make some changes later to prevent some errors, but you can play with it and make it better.
Forum: Plugins
In reply to: Custom Fields SearchI think a solution for this problem might be:
The result from the first query is used to filter the results in the second query.
I am saying that in the second query you don’t select all the posts
SELECT wposts.*
you will select only the posts that resulted from the first query.
Forum: Developing with WordPress
In reply to: themes_template: condition php and css and menu<?php if (is_home()) : ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/home.css" type="text/css" media="screen" /><?php endif; ?> <?php if (is_page('6')) : ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/randomizer.css" type="text/css" media="screen" /><?php endif; ?>
You can find more documentation about Conditional Tags
hereYou have to insert this in header.php in your theme directory.
Forum: Fixing WordPress
In reply to: How to enable cookies so can log in?Provide your e-mail address and I’ll contact you.
Forum: Fixing WordPress
In reply to: How to enable cookies so can log in?If you use Yahoo Messenger add rwyoyo to your contact list.
Forum: Fixing WordPress
In reply to: How to enable cookies so can log in?If they set up in the database the site url to taogemstones.com. You won’t be able to login until the domain name is active.
See here:
Site URL RedirectingIf you still have problems, I gladly take a look at your installation if you provide me the password to your host control panel.
Have you turned off your antivirus/firewall/antispyware software?
Forum: Fixing WordPress
In reply to: How to enable cookies so can log in?If you can see the dashboard this means that you are logged in.