|
We have 2 text fields ('post_text' & 'post_slug') in our database. Let's say, post_text = "Hello World!", so its post_slug = "hello-world". How to implement related posts feature without tagging each posts operating only existing fields? (PHP, MySQL)
...
Started by Ken on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
CREATE TABLE blog_table.`posts....
Displaying a post would then be just a simple join to add a table to mysql, you should create a table that holds the calculated relation of each post.
In a separate table referencing your original table.
|
|
Hi, I am trying to edit the post date on a wordpress post to show a future date is this possible? i.e posted on 6/06/10 but i actually printed it today
Started by newhen on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
It ....
If it doesn't, save the post then turn into a scheduled post.
Yes, you simply put in the date that you want it to be, while the post status is on draft, press ok, and then the publish button should turn into a schedule button.
|
|
Last count..
May 22nd - 83,253
May29th - 83,707
Posts per week: 454
Posts per day: 65
Started by Hermione Granger on
, 15 posts
by 4 people.
Answer Snippets (Read the full thread at fanforum):
Thanks for opening Katie! not bad hey?
are we goign to do that post day thing? Something’s gotta that one thing
One direction Yup! So let's post a lot!!! no, i don't want to now with that icon of yours to use it just yet!! why not?!
R/Hr....
|
Ask your Facebook Friends
|
I have this tables: Posts (post_is, title and text), Tags (tag_id, tag), Post_tag_nn (id, tag_id, post_id). I want for a specific post having for example 4 tags all the posts with those tags, then all the posts with any three of those tags, then all posts...
Started by Daniel on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If you're going to be pulling down every post with even a single one of the tags regardless, you from post_tag_nn as t, posts p where p.id = t.post_id order by t.id
And then do the group in your code tags and then one where you pull....
|
|
Here is my array:
arr[0]='A'; arr[1]='B'; ....
I tried to post it this way:
$.post('data.php',arr,function() { });
But fails to work as expected.
Answer Snippets (Read the full thread at stackoverflow):
What you need is a hash:
parameters = { "Param1" : "A", "Param2" : "B in the manual:
$.post("test.php", { 'choices[]': ["Jon", "Susan"] });
Therefore:
$.post("test.php.
You can't post an array.
|
|
On my homepage I have a list of posts, and at the top I want to show only the most recent "sticky" post, followed by the rest of the posts. Is there a way to achieve this?
Bonus points for only using one query_posts() .
(I know how to do it using two ...
Started by gabriel on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Before your query_posts(); add the following code:
function selectSticky( $sql....
What this is doing is modifying the sql query used to pull the posts.
You'll need to tweak this code a bit but it should get you going in the right direction .
|
|
I have few input fields in a form. after some validation, I use jquery to post the page.
$.post("Myproduct.aspx?action=1");
The post appears to go through. But when I debug the server code, the request.form[] is null.
Has any one had this problem?
Started by jack on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You probably want something....
If the
$.post("Myproduct.aspx?action=1");
is the only thing that is being posted, then no wonder, because you are simply missing the post parameters (the second parameter in the $.post() function).
|
|
Hi folks, can you advise please? I cannot comment on my own posts or anyone else's. I can Plus 1 things. Cannot post anything and cannot edit old posts. Cannot share posts either. I have logged out and cleared cookies, re booted machine,
Started by Heidi Anne Morris on
, 25 posts
by 6 people.
Answer Snippets (Read the full thread at google):
I have realised that I can post new work via Picasa do if still like it tomorrow thanks....
I see a current post of interactio no it's still a problem.
Glitch? You previously indicated that (among other things) you couldn't post.
|
|
I want to post parameters to a URL using the POST method but I cannot use a form. Even if I do use a form, it would have to be auto-posted with out user interaction. Is this possible? How can I do this?
Started by Gaurav on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
A very useful post about....
Check.
It without using cURL with straight-up PHP: http://netevil.org/blog/2006/nov/http-post-from-php-without-curl
You could use JavaScript and XMLHTTPRequest (AJAX) to perform a POST without using a form.
|
|
Hi community...
I'm new in Rails... smile
In my blog aplication I want to have a "Previous post" link and a "Next post" link in the bottom of my show view.
How do I do this?
Thanks!
Started by pollinoco on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Firstly, add a couple....
Learn here too
You can it.
It provides all the features you need to paginate your post entries.
If your a try.
; #{this_post.created_at} order by created_at desc limit 1
Of course "this_post" is the current post.
|