Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
I am a rails programmer basically who is looking to move towards wordpress for a project which involves conversion of paper based magazine / newspaper to an online version. I have developed rails app with HTML themes before and understand the HTML themes basically are concerned with front end logic. How wordpress themes are in that respect?? They are a bit expensive but do they have any back end functionality as well. I need some help understanding if i am thinking in the right manner. The theme has homepage which has multiple posts from multiple categories. Will i be able to put post with some categories and they will automatically appear as they shown in the homepage or do i have to manually select which post goes where. Regards
Each post in WP can be tagged and categorized. The posts can then be pulled from the database by various criteria - author, category, tag, date etc.
Read more here : http://codex.wordpress.org/Class_Reference/WP_Query
You could assign various columns on your homepage to display posts from different categories.
There are also different kinds of posts (post formats) such as image, video, quote etc. - which could all be displayed differently, depending on the theme (template).
Posts, post formats, categories, tags - all of these are a part of the standard WordPress install and are independent from the theme. The theme simply takes advantage of these features.
Wordpress is essentially just like any other CMS. You can make it do pretty much anything you want it to do. If you want all the posts to display on the homepage, you can. If you only want specific posts to display you can do that too with either categories or tags. All you need to know is some PHP and check out the Wordpress Codex for all the functions available.
If you are just wanting to buy a theme then obviously don't get the flexibility unless you hack the theme a bit.
Related
I'm making a portfolio page for a photographer. The photographer should be able to add new projects via wordpress. I am not really familiar with how wordpress uses the inputs for an "post" or "project" to create a new portfolio project.
Currently I have an intermediate knowledge of HTML and CSS. How would I be able to assign my own styles to content that is yet to be created? I figure this requires knowledge of PHP?
I understand this is a pretty general question and I apologise for my question is too vague. Searching for solutions has yet only given me plugin solutions.
In order to create a custom WordPress template not only requires some basic PHP knowledge, but also WordPress template knowledge. You can read all about them here.
I would suggest to use a theme instead. There are countless (the link is just an example) amazing portfolio themes, lots of them free and all of them responsive. If you want to go along with your current theme and use just a plugin to create those portfolio items, I suggest a plugin like Advanced Custom Fields.
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 7 years ago.
Improve this question
I'm entirely new to WordPress but have been tasked with creating a website for my uncles business. I'm trying to understand a bit more about the mechanics of WordPress before I do any more coding so I have a question about index.php / front-page.php.
I had been working on index.php before I even decided to implement WordPress so everything is hard coded. So at the moment I have a fully populated index.php file that I custom designed myself. My understanding of WordPress so far is that everything is dynamic. So I feel like what I should have done is created a front-page.php with a function within it to call the static 'Front page' that I create within the WordPress GUI, then outputting it using the_content();?
Is it okay to have hard-coded in WP, or is this against best practice? Obviously with my current implementation we will not be able to edit the file. How would I go about editing the CSS for this - For example I have a div named 'services' with a background image for this div in the CSS. How would this be implemented from within WP?
Ok i think you got it wrong, wordpress works on themes. In order to make your html design work with wordpress you will first have to create theme. Creating a basic theme is as simple as creating a new folder. Here are some of the basic files that are important, and difference between index.php and front-page.php.
style.css, This file will contain some comments that will define
the details about your theme
Header.php, The header part of your html design goes in this file including the main menu and slider.
Footer.php, the footer part i.e. copyright statements, footer menu etc goes in here
index.php, this file is used by default for list of blogs, but you can change it from settings > reading > and then choose the page you want to show as home page.
front-page.php, this is similar to what index.php does but it has more priority. So if both the files are present then this will be used. Another advantage of front-page.php is that you can add any kind of hardcoded html in here as it is not used by any other page.
page.php, this file is used to show all content of wordpress pages, like about, contact etc.
single.php, this file is responsible for showing a single blog post.
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
Given a Wordpress permalink (or slug), is there a way to track backwards to figure out the code that generates the displayed page? For example, using this URL "my.domain.com/product-category/lamps/" or "my.domain.com/product-category/tables/" can you track the code used to make up the page that is displayed in the browser?
Basically, here is my problem. I've been hired to complete/fix a Wordpress site that was heavily, heavily modified by the original programmer (who quit and is not available to help). The site uses the Stylo Theme with WooCommerce. The code to build the product catalog pages has been modified and I'm having a hard time finding all the PHP functions that do these modifications. There are no pages in the control panel that have a permalink that corresponds to the URL (shown above); so I don't even know what template he has used to start these pages. He did not write a widget or plugin to make these changes, but changed the original code. His modifications broke (or deliberately disabled) some of the search functionality (min and max price range) built into the theme.
So, back to my question - given the final permalink displayed in the browser's address bar, can I backtrack the code 'path' used to build the page?
This is an easy way to get the path of the template file that is used to render the current request. Place the code in functions.php in your theme or in a plugin and this will print the path on top of your site.
add_filter ( 'template_include', 'debug_template_dump' );
function debug_template_dump( $template_path ) {
echo $template_path;
return $template_path;
}
In my experience in similar circumstances, the easiest way to proceed is this:
1. Log in to the site. Make sure you have the wordpress admin bar enabled.
2. View the page in question from the front end.
3. Select 'edit post' or 'edit page' or whatever is offered
The link you supplied is likely to be for a woocommerce product category. Customization was probably performed either using templates (look for a woocommerce folder in your theme) or by utilizing hooks to add custom functions (look in functions.php).
I have a question regarding how best to build a widget/plug-in for WordPress.
I have tried to code this thing out but unfortunately to no avail but that's because I'm increasingly thinking I'm going about it the entirely wrong way.
This is what I'm trying to achieve:
I have built a theme from scratch. In this theme I have two content areas. The larger of the two contains the main content and the smaller of the two (proposed widget/plug-in) contains supplementary information (opening times, Facebook feed). I don't want this widget/plug-in to appear on every page and would like the ability to turn it on or off within the usual WordPress admin area.
The impression I am getting is that I can build the widget that contains the content I want (with necessary forms to change said content) but it is either on for ALL pages or off for ALL pages, no sort-of page specific functionality. That's where I'm thinking a plug-in would extend the functionality and allow me to be more page specific with it. That is my current set-up with a theme I'm running and plug-in I added (neither of which were coded by me) but I would like to repeat it as best as possible.
Would it be right to assume that widgets are not really designed to have page specific functionality and that function should be left down to a plug-in?
I appreciate this question asks nothing really in the way specific advice but I would just like an opinion or two on the best approach before I go away and create it - this is my main struggle at the moment.
Thanks for looking.
This can be done with the Jetpack plugin. Once activated you can choose what widgets display on what pages:
The Widget Visibility module enables you to configure widgets to appear only on certain pages (or be hidden on certain pages) by using the Visibility panel.
Visibility is controlled by five aspects: page type, category, tag, date, and author. For example, if you wanted the Archives widget to only appear on category archives and error pages, choose “Show” from the first dropdown and then add two rules: “Page is 404 Error Page” and “Category is All Category Pages.”
Originally posted here
It is also possible with the Display Widgets plugin.
This is a common problem. The usual remedy is to use an existing plugin that allows widgets to be tied to pages.
The 3 most popular plugins for this are:
JetPack
Per Page Widgets
Widget Logic
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
I have been writing articles on the wordpress.com blog, now I am looking to move it to self-hosted WordPress blog but I wonder:
1)
Should I move all my articles on the new blog or just put an article on my last blog that more articles will be posted on my new blog?
2)
If i move all articles on my new blog, I am not sure about how google will react to it because there are articles with good number of visitors, won't this be seo-un-friendly because I am not sure but Google will re-create page reputation stuff, etc or those articles will have same popularity even if I move elsewhere?
3)
What are the implications and side-effects in moving from wordpress.com blog to self-hosted WordPress blog?
For general instructions and hints, check out this in the WordPress forums:
migration to wordpress.org self hosted & image exporting or uploading
Should i move all my articles on the new blog or just put an article on my last blog that more articles will be posted on my new blog?
I'd say take them all with you. That way, you'll have a rich archive from the start, plus all your articles have the same link structure and are on the same domain.
Google
You will most likely take a hit in SEO if you switch off your old blog, and re-create all content on the new one. For a personal blog, it might be not that much of a big deal, though. I would definitely not maintain the same content on both blogs, because Google might interpret that as duplicate content. If the hosted Wordpress blog allows it, maybe install a redirect to the new blog.
If you can set up the hosted WordPress to deliver a header redirect to the exact article on your new blog, it may even work without losing much in Google's ranking.
i migrated the end of 2007, and wrote a blogpost on what I did, but it's in Dutch i'm afraid. but here's a summary of what I did;
moved my RSS-feed to feedburner a long time in advance and asked everyone to switch
did an export of my old blog (i.e. articles + comments) and imported the result in my self-hosted wp.org-blog
changed the number of posts/page to 1 on the old wp.com-blog
removed all comments on the old blog
for the 20 (or 50?) most popular blogpost removed most of the content, only leaving a teaser and linking to the full blogpost on the self-hosted blog
removed (almost) all widgets and added an rss-widget with the feed from my new blog
asked everyone who linked to the old blog to change the link
posted a 'last blogpost' which includes the link to the new url and to the feed (again)
it still took some time for google to send traffic to the new blog, but you'll have to bite that bullet i'm afraid.