I'm not sure if this is a general web design or Wordpress question.
I have a simple demo here to illustrate my question.
http://www.ttmt.org.uk/forum/wp/
It's just a simple 2 column responsive layout.
My simple question is how do I spilt the content between the two columns.
The page will be a Page in Wordpress and not posts (I think).
I wanted to create a page in Wordpress and place the text on the content area
There is one content area in Wordpress, is there a way to split this content
so I can say this is the left column, this is the right column.
The text will all be on the same subject but I need to split it between two columns.
Thanks in advance for any help.
If you are asking for how to make three columns out of the existing two than have a look here. If you are looking for a way to make it possible to enter the content in a way that you are able to output the different columns in different places in the theme, than there are a lot of ways.
In general you need some kind of »container« for each column, so you could start by adding div-containers by using the plain text editor when creating a post or page. You can also use the custom fields to enter more columns. There are also plugins available (I never used one for this) and last but not least: you can create your plugin and hook into the page/post-edit page and add additional fields to the input field. With such a plugin you also create a custom post type and hook only into its editing form.
The solutions range from »cheap and fast« to »rather complex« and it depends how comfortable the editing should or has to be. If it is only for you than simple hacks in the editor might satisfy your needs, but if it is for a client who is not that good in html you should consider something »stronger«.
I think this is design issue rather than Wordpress. Wordpress fetch content as a single item and displays it. If you want to display the content in multiple columns then you can use jQuery plugins like http://www.vanderlee.com/martijn/?page_id=229
You could split your content into column using the column shortcodes plugin from wordpress.org
Related
i am using avada fusion theme in my wordpress site, different plugins work fine if i need to search posts and pages, but i need to search/sort/filter in a page where i have created 100+ containers/items as a list(like slides or templates).
how can i get it done?
And also what would be a good approach if my list is going to be long i.e 400+ in near future?
re: i have different graphical and text included items in a page with same templates, and i need to search, sort, filter from that list in that page.
I do not see any option to tag or id each template/containers in page which would make search/sort easy.
thank you in advance
1) I want to create an image slider like here: https://rosaliedemo.wordpress.com/ (I'm using the same Wordpress Theme). There is no widget available to achieve that. Notice that those pictures are linked to a specific post I made. Is that a popular widget or plugin I need to implement somehow?
2) Secondly I want that the latest posts are seperated in 2 colums which already works. But I want that the first latest post is only one column.
How can I achieve that?
Answering your questions:
That Slide Images is a Plugin, here you can find it: http://www.myjqueryplugins.com/jquery-plugin/flexslider
I really don't understand at all your question, you want to divide a post in columns? I use to used this plugin to make columns inside posts:
https://wordpress.org/plugins/column-posts/
Let me know if it helps.
I am developing a site using Ubercart that shows product summaries on the main page (I believe these are called teasers). Each product has a voting widget provided by Vote Up/Down on its actual node/page. I've copied page.tpl.php to page-front.tpl.php because I want to add a small block or box that shows the number of upvotes on the main page (but not actually allow voting here) and finally sort these teasers by popularity (number of votes).
I can see that print $content is outputting this page's content but I am not sure where this is being generated so I can either hook into it or modify directly. I've coded themes and plugins in Wordpress but I don't know Drupal well enough yet.
Thanks in advance.
You should first know what is generating your front-page. Is it Views? Or another module?
If it's Views, you can easily add the vote count from the Drupal backend. If it's another thing, depending on what it is there are ways to change the output.
I'll try and give an example what i want:
(this isn't what I'm doing, but it seems like a decent example of how I'd like it to work)
Imagine we have a custom post type (CPT) of 'houses' and one of the custom meta options for this CPT is 'bedrooms' - obviously, different houses have different amount of bedrooms, all of which have different properties. So, I'd like to be able to allow the user to add several different properties about a bedroom i.e.
Dimensions, aspect, number of windows and floor type
When the user has added these details for the first bedroom, if the house has a second bedroom then I would like them to have an 'add bedroom' button and another set of these meta boxes is added so they can fill out the details about bedroom 2.
I understand that I'll need some javascript to add this facility (and something I don't mind writing) but what I'm struggling with in my poor, useless brain is how to save these to the database. I want to achieve this using WordPress meta so that I don't add any unnecessary database tables and I'm sure it's possible I just can't quite fathom the principles of how to save the data.
Pointers to any tutorials would be brilliant, or some examples of plugins which already do this kind of thing would be very gratefully received.
here is a screenshot to get an idea what i want to do.
Solution:
I have found solution here, it might be helpful for someone.
https://wordpress.stackexchange.com/questions/25478/custom-post-type-metabox-array
You are basically after repeater metaboxes. A few metabox classes support repeating fields. One worth checking out is http://www.farinspace.com/wpalchemy-metabox/
I wrote a plugin that uses repeating metabox fields that doesn't use wp-alchemy if you want to dig through it. http://code.google.com/p/css-thumbnail-sprites/
After only a few weeks of working with Drupal I've come up with a recurring problem, which I don't really have an optimal solution to, so I'm hoping that someone here might be able to give some best practice pointers.
What I have is a region inside my node.tpl.php, which is populated with blocks that display content from two different CCK fields of the type node_reference. This works fine when displaying a single node. The problem appears when I need to use a view.
For example, lets say I have a news listing, and a single news item view. When I display the single news item I can use the news node node_reference field to reference whatever material I would like to have in my sidebar, but when on the news listing view I would like to reference nodes separately. What would be the best practice to solve this?
I'm having a few ideas, but none seem like the logical choice, how would you do?
My understanding of your problem is that you don't want the blocks to display on the view page and you want the block information displayed inline with the node.
The first part is easy, you can modify the block visibility settings to not show up on the path where you have the view.
The second part will depend on how you set up your view. If you are using fields you can simply add fields for the node_reference and they should display. If you are using a node view, you will have to override the template and create a template which displays the node reference field.
If you want further explanation please comment and I can clarify
After reading my question I realize that it was explained pretty badly, so I'll try again, and also tell how I solved it.
The Problem
On normal "pages" (when displaying only a single node), I have a sidebar that shows something similar to banners, which are either random, or I can select one or many that should always be displayed on the sidebar. This is solved easily when displaying a single node, using a CCK node_reference field. The problem is when using a View that displays multiple nodes, for example a news listing-
The Solution
In my case I could solve this by creating additional fields on my default Page content-type. These fields were called view, display and arguments. In my tpl.php I then embedded the news listing view inside a page, lets call it News. This way I gained great flexibility, and also helps the News page to know where it is located in menu structure.
Final comments
I have yet to discover if there are any drawbacks or dangers in doing this way, but if there are, feel free to share them with me :)
I tend to want to create my own modules, which create blocks and reference the database directly. Then I put the blocks inside of panels, this seems to be more flexible for me than using views and cck fields etc ...