ousep
Forum Replies Created
-
Forum: Plugins
In reply to: Tweet only a certain category from wordpress entries…A small hack, until the next version comes out..
Around line 260, add this line…
if (in_category (XX, $post) ){
before
if ($post->post_status == 'private' || $post->post_type == 'page') {return;}
and then, around line 290,
add an extra}
after
$update = $twitter->update_status($tweet, $user_key, $user_key_secret);
Replace XX with the category id, name or slug. Read this for more details.
Forum: Fixing WordPress
In reply to: Customized sign in pageYou could also try CYC. It integrates into your site completely…
https://www.ads-software.com/extend/plugins/customize-your-community/
Forum: Fixing WordPress
In reply to: Custom fields question: one key, many values6 hours, the forum says I took to resolve this…
I guess I just needed to read up a bit more than I did.What I did was to add both the sanitized project name and the number of images to the custom field value, comma separated.
I’m not sure if this is a hundred percent right/efficient, but it works as expected. Could someone give me an opinion on this code.
<?php $project_values = get_post_custom_values('project'); foreach ( $project_values as $oneproject ) { //start a project $project_array = explode(', ', $oneproject); // make an array of project name and number of images $project = $project_array[ 0 ]; //define $project as project name $images = $project_array[ 1 ]; //define $images as number of images per project echo "<div class='project'> <!-- start a project div --> <a href='https://domain.tld/images/$project-1.jpg' rel='shadowbox[$project]'><img src='https://domain.tld/images/$project.jpg' /></a> <!-- the first link is different from the rest --> "; for ($i = 2; $i <= $images; ++$i) { //loop to count images two onwards echo "<a href='https://domain.tld/images/$project-$i.jpg' rel='shadowbox[$project]' class='hidden'></a> <!-- consequent links are identical --> "; } echo "</div> //end the project "; }?>
This is going to save me hours. And make me popular with the ladies.
Forum: Fixing WordPress
In reply to: Redirect pages and posts from /blog to domain’s public folderFollow the instructions here:
https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory
It’s just a matter of shifting/editing two files.Forum: Fixing WordPress
In reply to: MAYOR PROBLEM! HELP!Nice to see it all in place… Glad I could help…
Forum: Fixing WordPress
In reply to: MAYOR PROBLEM! HELP!The only thing I can think of is that, perhaps, you deleted the word art in the wrong place.
If that’s the case, you’d probably need to access your phpmyadmin from your hosting control panel.
Browse to the wordpress database, and the wp_options table. Your siteurl should be https://www.sitename.nl/artMaking that change should bring you back. I’m only guessing that this is the issue.
Forum: Fixing WordPress
In reply to: MAYOR PROBLEM! HELP!1. Shift htaccess to public_html
2. Go to https://www.thewebsite.nl/art/wp-admin/ and login
3. Go to Settings > permalinks, and click on save changes.Forum: Fixing WordPress
In reply to: MAYOR PROBLEM! HELP!You’d have to move the index.php from the /art folder to the public_html folder. If you changed your permalink settings, shift .htaccess as well.
If there’s already an index.php in public_html, rename it to index_old.php. After the site is working, you can check to see what the file contains.
Forum: Fixing WordPress
In reply to: MAYOR PROBLEM! HELP!Yes.. that seems about right.
Just to check, do you have an index.php under /art/, or is it under public_html?Forum: Fixing WordPress
In reply to: Displaying Content only on the home pageInstead of is_home, try is_front_page. That worked for me when I faced this.
Forum: Fixing WordPress
In reply to: MAYOR PROBLEM! HELP!This is what you did, but probably didn’t go through all the steps…
https://codex.www.ads-software.com/Giving_WordPress_Its_Own_DirectoryYou’ll need to do step 7 onwards, and delete the index.html file with the ‘website almost ready’ message.
Forum: Plugins
In reply to: [Plugin: Visitor Like/Dislike Post Rating] hidden poker link in footerThe plugin author’s email address is [his username](at)hotmail.
You can delete it now, PluginTaylor. ??Forum: Fixing WordPress
In reply to: How to split a post into 2 columns?Create two classes in your style.css: postleft and postright, for example, like so:
.postleft{ float: left; width: 450px /*change this to the width you need */;} .postright{ float:right; width: 300px/*change this to the width you need */; }
And in all your posts, place the video and capture like so:
<div class="postleft"> (youtube code) </div> <div class="postright"> (capture img) </div>
Forum: Fixing WordPress
In reply to: I havent been able to drag and dropOkay.. I figured my problem. WP-Ecommerce, it is. If only they’d test their product a bit before releasing a new “stable” version every other day.
Forum: Fixing WordPress
In reply to: I havent been able to drag and dropMy widgets were working fine until 2.7.1
With 2.8, the dragging and dropping doesn’t work at all…Anyone else facing this?