How to edit the search result in Google? [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Take yahoo as example,
how to control the following? (to make it simple, the result apply to the all countries)
title
description
can select which six page to show in search result?
six sub-title and their short description
Studied a while and found that the result are auto detect , so how to manually change them and how to make sure the changes since it take some time before the new search result is take effect?
http://support.aarcade.net/how-do-i-update-or-change-the-google-search-results-for-my-site/
thanks a lot

Title for each page including sitelinks (those six pages underneath) is from <title> tag in the page <head>.
Same goes for Description, those are from <description> tag.
Keep in mind that Google can alter or change them completely based on the page content and title/description provided.
You can't choose witch sitelinks to include, Google choses them automatically. But you can demote them with Webmaster Tools.

Related

I want to use category as custom type in Wordpress theme [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Generally, in WordPress when we click on any category, a page opens with all posts, associated with the category. I want to make a tweak in this behavior. I want when a category is clicked, all child-category should be listed and when a child-category gets clicked, all associated posts should be listed on the page.
I have no idea how to achieve this.
Could you guys give me any idea?
Regards!
If you would like to always show the categories, regardless of if they have posts, you could move the echoing of the '$category->name 'outside of the if '($posts)'. The way that it is currently, the category name will only be displayed if there is a post with that category.
I think that a potential bigger challenge would be to display the categories in a hierarchy (indenting the sub-categories). If you simply move the display of the category name above the check for posts, they will all show as top-level categories. Here is a discussion of someone working on this issue on Stack Exchange:
https://wordpress.stackexchange.com/questions/270176/showing-categories-and-subcategories-with-posts
I wonder if another possibility would be to use: https://developer.wordpress.org/reference/functions/wp_list_categories/ and then override the HTML generation. It looks like that is what is happening here:
https://wordpress.stackexchange.com/questions/98755/how-can-i-customize-the-wp-list-categories

Get news and convert to plain text php [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I want to know if there's a way to chose a random link from a news website, get the page and remove all but text to be stored in a database with php cli. I have no limitations on what can be installed as far as php extensions. If there is no easy way to do this, is there a news service that supplies plain text news?
thanks.
Nope - not from a 'website'... html will vary from site to site and too complex to filter from one source - add multiple sources and the mission is impossible.
That's the bad news. The good news is that there is a way:
Most "news" site provide their content, or a portion of the content, in RSS feeds. Do some research on RSS2 and ATOM protocols and your answer is in there...
Start here: http://www.whatisrss.com

how to show | hide links for certain time [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am writing one add on for my ptc website,using php and Mysql, with the following features:
1: user will click the link
2: user will copy the output url
3: paste it in the text field
4: if the pasted value matched with the existing value, it will credit the user account.
I have done above all:
what i want to ask is.
when a link is clicked , it should not appear to the same user for certain time , i.e. 1 hr or 4 hrs. or 24 etc etc
this is sort of manual surf for web sites.
Thanks for suggestions:
Making comment my answer, as OP seemed to like it:
You are going to have to keep a record (in the db) of when the user clicked the link. Then check against that when they come back. That's the most reliable way to track it...

Website functionality (data to html generating) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I already have the info i need in the database. I know how to display the data on the main page, but i only show a small part of info there.
What i need is when i click on the read more i want it to link to a full info page.
How to i accomplish that? Do i have to make/generate a html file for every car i have and link the info from the main page to it? Or what is the correct technique for achieving this ?
It sounds like you want to have a list of cars on a main page, and then clicking on one of these cars would bring you to a details page with more information about that specific car.
This is a common situation. You'd simply have your main page query your car table and format that as a list of cars, each with a link to a details page like /details/12345 where the number represents the ID of the car you want to see. Then your details page would get the ID from the URL, query your database for details of that car ID, and assemble the page with those details.

Preserving text formatting for dynamic website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am facing a problem while creating a dynamic website. I am building it for some pharma company, which have many products. The problem is, every product have different sections of description, and have to be formatted differently. I wanted to store all the product descriptions in the database, but at the same time preserve the formatting of each description. I also plan to provide an admin interface, where they could edit the product information themselves.
I could use Joomla or any other CMS for that purpose, but i wanted to know if i want to build such a system of my own, where i could format the text in an editor and them save that thing into database and when i retrieve it, i get the same formatting. How could i do this?
Also i wanted to do this in PHP.
Thanks
-- Mohit
Just use a WYSIWYG editor like ckEditor or TinyMce. That will handle the text formatting.. then you jsut store in your database.

Categories